Package gnu.xquery.lang
Class XQResolveNames
- All Implemented Interfaces:
SourceLocator,SourceLocator,Locator
-
Nested Class Summary
Nested classes/interfaces inherited from interface gnu.text.SourceLocator
SourceLocator.Simple -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCode number for the specialbase-urifunction.static final intstatic final intstatic final Declarationstatic final Declarationstatic final intCode number for the specialcollectionfunction.static final intCode number for the specialcomparefunction.static final intCode number for the specialdeep-equalfunction.static final intCode number for the specialdefault-collationfunction.static final intCode number for the specialdistinct-valuesfunction.static final intCode number for the specialdoc-availablefunction.static final intCode number for the specialdocfunction.static final intCode number for internal function to handle extensions.static final Declarationstatic final intCode number for the specialidfunction.static final intCode number for the specialidreffunction.static final intCode number for the specialindex-offunction.static final intCode number for the speciallangfunction.static final intCode number for the speciallastfunction.static final DeclarationDeclaration for thefn:last()function.static final intCode number for the speciallocal-namefunction.static final intCode number for the specialmaxfunction.static final intCode number for the specialminfunction.static final intCode number for the specialnamefunction.static final intCode number for the specialnamespace-urifunction.static final intCode number for the specialnormalize-spacefunction.static final intCode number for the specialnumberfunction.static final intCode number for the specialpositionfunction.static final intCode number for internal function that maps prefix to uri.static final intCode number for the specialressolve-urifunction.static final Declarationstatic final intCode number for the specialrootfunction.static final intCode number for the specialstatic-base-urifunction.static final Declarationstatic final intCode number for the specialstringfunction.static final intCode number for the specialunorderedfunction.static final intValue ofxs:QName()constructor.static final intLikeXS_QNAME_BUILTIN, but ignore the default element namespace.static final Declarationstatic final DeclarationFields inherited from class gnu.expr.ResolveNames
lookupFields inherited from class gnu.expr.ExpVisitor
currentLambda, exitValue, messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckPragma(Symbol name, Expression contents) static DeclarationmakeBuiltin(Symbol name, int code) Create aDeclarationfor a builtin function.static DeclarationmakeBuiltin(String name, int code) Create aDeclarationfor a builtin function.protected voidvoidresolveModule(ModuleExp exp) protected ExpressionvisitApplyExp(ApplyExp exp, Void ignored) protected ExpressionvisitReferenceExp(ReferenceExp exp, ApplyExp call) protected ExpressionvisitReferenceExp(ReferenceExp exp, Void ignored) protected ExpressionvisitSetExp(SetExp exp, Void ignored) Methods inherited from class gnu.expr.ResolveNames
lookup, visitLetExp, visitScopeExpMethods inherited from class gnu.expr.ExpExpVisitor
defaultValue, error, error, updateMethods inherited from class gnu.expr.ExpVisitor
error, getColumnNumber, getCompilation, getCurrentLambda, getEndColumn, getEndLine, getExitValue, getFileName, getLanguage, getLineNumber, getMessages, getPublicId, getStartColumn, getStartLine, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, visit, visit, visitAndUpdate, visitBeginExp, visitBlockExp, visitCaseExp, visitClassExp, visitDeclarationType, visitDeclarationTypes, visitDefaultArgs, visitExitExp, visitExpression, visitExps, visitExps, visitFluidLetExp, visitIfExp, visitLambdaExp, visitLangExp, visitModuleExp, visitObjectExp, visitQuoteExp, visitSynchronizedExp, visitThisExp, visitTryExp
-
Field Details
-
parser
-
LAST_BUILTIN
public static final int LAST_BUILTINCode number for the speciallastfunction.- See Also:
-
POSITION_BUILTIN
public static final int POSITION_BUILTINCode number for the specialpositionfunction.- See Also:
-
HANDLE_EXTENSION_BUILTIN
public static final int HANDLE_EXTENSION_BUILTINCode number for internal function to handle extensions.- See Also:
-
COMPARE_BUILTIN
public static final int COMPARE_BUILTINCode number for the specialcomparefunction.- See Also:
-
DISTINCT_VALUES_BUILTIN
public static final int DISTINCT_VALUES_BUILTINCode number for the specialdistinct-valuesfunction.- See Also:
-
LOCAL_NAME_BUILTIN
public static final int LOCAL_NAME_BUILTINCode number for the speciallocal-namefunction.- See Also:
-
NAMESPACE_URI_BUILTIN
public static final int NAMESPACE_URI_BUILTINCode number for the specialnamespace-urifunction.- See Also:
-
COLLECTION_BUILTIN
public static final int COLLECTION_BUILTINCode number for the specialcollectionfunction.- See Also:
-
DOC_BUILTIN
public static final int DOC_BUILTINCode number for the specialdocfunction.- See Also:
-
DOC_AVAILABLE_BUILTIN
public static final int DOC_AVAILABLE_BUILTINCode number for the specialdoc-availablefunction.- See Also:
-
BASE_URI_BUILTIN
public static final int BASE_URI_BUILTINCode number for the specialbase-urifunction.- See Also:
-
RESOLVE_URI_BUILTIN
public static final int RESOLVE_URI_BUILTINCode number for the specialressolve-urifunction.- See Also:
-
RESOLVE_PREFIX_BUILTIN
public static final int RESOLVE_PREFIX_BUILTINCode number for internal function that maps prefix to uri.- See Also:
-
STATIC_BASE_URI_BUILTIN
public static final int STATIC_BASE_URI_BUILTINCode number for the specialstatic-base-urifunction.- See Also:
-
INDEX_OF_BUILTIN
public static final int INDEX_OF_BUILTINCode number for the specialindex-offunction.- See Also:
-
STRING_BUILTIN
public static final int STRING_BUILTINCode number for the specialstringfunction.- See Also:
-
NORMALIZE_SPACE_BUILTIN
public static final int NORMALIZE_SPACE_BUILTINCode number for the specialnormalize-spacefunction.- See Also:
-
UNORDERED_BUILTIN
public static final int UNORDERED_BUILTINCode number for the specialunorderedfunction.- See Also:
-
LANG_BUILTIN
public static final int LANG_BUILTINCode number for the speciallangfunction.- See Also:
-
NAME_BUILTIN
public static final int NAME_BUILTINCode number for the specialnamefunction.- See Also:
-
DEEP_EQUAL_BUILTIN
public static final int DEEP_EQUAL_BUILTINCode number for the specialdeep-equalfunction.- See Also:
-
MIN_BUILTIN
public static final int MIN_BUILTINCode number for the specialminfunction.- See Also:
-
MAX_BUILTIN
public static final int MAX_BUILTINCode number for the specialmaxfunction.- See Also:
-
NUMBER_BUILTIN
public static final int NUMBER_BUILTINCode number for the specialnumberfunction.- See Also:
-
DEFAULT_COLLATION_BUILTIN
public static final int DEFAULT_COLLATION_BUILTINCode number for the specialdefault-collationfunction.- See Also:
-
ID_BUILTIN
public static final int ID_BUILTINCode number for the specialidfunction.- See Also:
-
IDREF_BUILTIN
public static final int IDREF_BUILTINCode number for the specialidreffunction.- See Also:
-
ROOT_BUILTIN
public static final int ROOT_BUILTINCode number for the specialrootfunction.- See Also:
-
CAST_AS_BUILTIN
public static final int CAST_AS_BUILTIN- See Also:
-
CASTABLE_AS_BUILTIN
public static final int CASTABLE_AS_BUILTIN- See Also:
-
XS_QNAME_BUILTIN
public static final int XS_QNAME_BUILTINValue ofxs:QName()constructor.- See Also:
-
XS_QNAME_IGNORE_DEFAULT_BUILTIN
public static final int XS_QNAME_IGNORE_DEFAULT_BUILTINLikeXS_QNAME_BUILTIN, but ignore the default element namespace. The is appropriate fro resolving atributes.- See Also:
-
handleExtensionDecl
-
castAsDecl
-
castableAsDecl
-
lastDecl
Declaration for thefn:last()function. -
xsQNameDecl
-
xsQNameIgnoreDefaultDecl
-
staticBaseUriDecl
-
resolvePrefixDecl
-
functionNamespacePath
-
-
Constructor Details
-
XQResolveNames
public XQResolveNames() -
XQResolveNames
-
-
Method Details
-
makeBuiltin
Create aDeclarationfor a builtin function. -
makeBuiltin
Create aDeclarationfor a builtin function. -
push
- Overrides:
pushin classResolveNames
-
visitReferenceExp
- Overrides:
visitReferenceExpin classResolveNames
-
visitReferenceExp
-
visitSetExp
- Overrides:
visitSetExpin classResolveNames
-
resolveModule
- Overrides:
resolveModulein classResolveNames
-
visitApplyExp
- Overrides:
visitApplyExpin classExpVisitor<Expression,Void>
-
checkPragma
-