Package gnu.xquery.lang
Class XQResolveNames
- java.lang.Object
-
- gnu.expr.ExpVisitor<Expression,D>
-
- gnu.expr.ExpExpVisitor<Void>
-
- gnu.expr.ResolveNames
-
- gnu.xquery.lang.XQResolveNames
-
- All Implemented Interfaces:
SourceLocator,SourceLocator,Locator
public class XQResolveNames extends ResolveNames
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gnu.text.SourceLocator
SourceLocator.Simple
-
-
Field Summary
Fields Modifier and Type Field Description static intBASE_URI_BUILTINCode number for the specialbase-urifunction.static intCAST_AS_BUILTINstatic intCASTABLE_AS_BUILTINstatic DeclarationcastableAsDeclstatic DeclarationcastAsDeclstatic intCOLLECTION_BUILTINCode number for the specialcollectionfunction.static intCOMPARE_BUILTINCode number for the specialcomparefunction.static intDEEP_EQUAL_BUILTINCode number for the specialdeep-equalfunction.static intDEFAULT_COLLATION_BUILTINCode number for the specialdefault-collationfunction.static intDISTINCT_VALUES_BUILTINCode number for the specialdistinct-valuesfunction.static intDOC_AVAILABLE_BUILTINCode number for the specialdoc-availablefunction.static intDOC_BUILTINCode number for the specialdocfunction.Namespace[]functionNamespacePathstatic intHANDLE_EXTENSION_BUILTINCode number for internal function to handle extensions.static DeclarationhandleExtensionDeclstatic intID_BUILTINCode number for the specialidfunction.static intIDREF_BUILTINCode number for the specialidreffunction.static intINDEX_OF_BUILTINCode number for the specialindex-offunction.static intLANG_BUILTINCode number for the speciallangfunction.static intLAST_BUILTINCode number for the speciallastfunction.static DeclarationlastDeclDeclaration for thefn:last()function.static intLOCAL_NAME_BUILTINCode number for the speciallocal-namefunction.static intMAX_BUILTINCode number for the specialmaxfunction.static intMIN_BUILTINCode number for the specialminfunction.static intNAME_BUILTINCode number for the specialnamefunction.static intNAMESPACE_URI_BUILTINCode number for the specialnamespace-urifunction.static intNORMALIZE_SPACE_BUILTINCode number for the specialnormalize-spacefunction.static intNUMBER_BUILTINCode number for the specialnumberfunction.XQParserparserstatic intPOSITION_BUILTINCode number for the specialpositionfunction.static intRESOLVE_PREFIX_BUILTINCode number for internal function that maps prefix to uri.static intRESOLVE_URI_BUILTINCode number for the specialressolve-urifunction.static DeclarationresolvePrefixDeclstatic intROOT_BUILTINCode number for the specialrootfunction.static intSTATIC_BASE_URI_BUILTINCode number for the specialstatic-base-urifunction.static DeclarationstaticBaseUriDeclstatic intSTRING_BUILTINCode number for the specialstringfunction.static intUNORDERED_BUILTINCode number for the specialunorderedfunction.static intXS_QNAME_BUILTINValue ofxs:QName()constructor.static intXS_QNAME_IGNORE_DEFAULT_BUILTINLikeXS_QNAME_BUILTIN, but ignore the default element namespace.static DeclarationxsQNameDeclstatic DeclarationxsQNameIgnoreDefaultDecl-
Fields inherited from class gnu.expr.ResolveNames
lookup
-
Fields inherited from class gnu.expr.ExpVisitor
currentLambda, exitValue, messages
-
-
Constructor Summary
Constructors Constructor Description XQResolveNames()XQResolveNames(Compilation comp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressioncheckPragma(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 voidpush(ScopeExp exp)voidresolveModule(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, visitScopeExp
-
Methods inherited from class gnu.expr.ExpExpVisitor
defaultValue, error, error, update
-
Methods 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 Detail
-
parser
public XQParser parser
-
LAST_BUILTIN
public static final int LAST_BUILTIN
Code number for the speciallastfunction.- See Also:
- Constant Field Values
-
POSITION_BUILTIN
public static final int POSITION_BUILTIN
Code number for the specialpositionfunction.- See Also:
- Constant Field Values
-
HANDLE_EXTENSION_BUILTIN
public static final int HANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.- See Also:
- Constant Field Values
-
COMPARE_BUILTIN
public static final int COMPARE_BUILTIN
Code number for the specialcomparefunction.- See Also:
- Constant Field Values
-
DISTINCT_VALUES_BUILTIN
public static final int DISTINCT_VALUES_BUILTIN
Code number for the specialdistinct-valuesfunction.- See Also:
- Constant Field Values
-
LOCAL_NAME_BUILTIN
public static final int LOCAL_NAME_BUILTIN
Code number for the speciallocal-namefunction.- See Also:
- Constant Field Values
-
NAMESPACE_URI_BUILTIN
public static final int NAMESPACE_URI_BUILTIN
Code number for the specialnamespace-urifunction.- See Also:
- Constant Field Values
-
COLLECTION_BUILTIN
public static final int COLLECTION_BUILTIN
Code number for the specialcollectionfunction.- See Also:
- Constant Field Values
-
DOC_BUILTIN
public static final int DOC_BUILTIN
Code number for the specialdocfunction.- See Also:
- Constant Field Values
-
DOC_AVAILABLE_BUILTIN
public static final int DOC_AVAILABLE_BUILTIN
Code number for the specialdoc-availablefunction.- See Also:
- Constant Field Values
-
BASE_URI_BUILTIN
public static final int BASE_URI_BUILTIN
Code number for the specialbase-urifunction.- See Also:
- Constant Field Values
-
RESOLVE_URI_BUILTIN
public static final int RESOLVE_URI_BUILTIN
Code number for the specialressolve-urifunction.- See Also:
- Constant Field Values
-
RESOLVE_PREFIX_BUILTIN
public static final int RESOLVE_PREFIX_BUILTIN
Code number for internal function that maps prefix to uri.- See Also:
- Constant Field Values
-
STATIC_BASE_URI_BUILTIN
public static final int STATIC_BASE_URI_BUILTIN
Code number for the specialstatic-base-urifunction.- See Also:
- Constant Field Values
-
INDEX_OF_BUILTIN
public static final int INDEX_OF_BUILTIN
Code number for the specialindex-offunction.- See Also:
- Constant Field Values
-
STRING_BUILTIN
public static final int STRING_BUILTIN
Code number for the specialstringfunction.- See Also:
- Constant Field Values
-
NORMALIZE_SPACE_BUILTIN
public static final int NORMALIZE_SPACE_BUILTIN
Code number for the specialnormalize-spacefunction.- See Also:
- Constant Field Values
-
UNORDERED_BUILTIN
public static final int UNORDERED_BUILTIN
Code number for the specialunorderedfunction.- See Also:
- Constant Field Values
-
LANG_BUILTIN
public static final int LANG_BUILTIN
Code number for the speciallangfunction.- See Also:
- Constant Field Values
-
NAME_BUILTIN
public static final int NAME_BUILTIN
Code number for the specialnamefunction.- See Also:
- Constant Field Values
-
DEEP_EQUAL_BUILTIN
public static final int DEEP_EQUAL_BUILTIN
Code number for the specialdeep-equalfunction.- See Also:
- Constant Field Values
-
MIN_BUILTIN
public static final int MIN_BUILTIN
Code number for the specialminfunction.- See Also:
- Constant Field Values
-
MAX_BUILTIN
public static final int MAX_BUILTIN
Code number for the specialmaxfunction.- See Also:
- Constant Field Values
-
NUMBER_BUILTIN
public static final int NUMBER_BUILTIN
Code number for the specialnumberfunction.- See Also:
- Constant Field Values
-
DEFAULT_COLLATION_BUILTIN
public static final int DEFAULT_COLLATION_BUILTIN
Code number for the specialdefault-collationfunction.- See Also:
- Constant Field Values
-
ID_BUILTIN
public static final int ID_BUILTIN
Code number for the specialidfunction.- See Also:
- Constant Field Values
-
IDREF_BUILTIN
public static final int IDREF_BUILTIN
Code number for the specialidreffunction.- See Also:
- Constant Field Values
-
ROOT_BUILTIN
public static final int ROOT_BUILTIN
Code number for the specialrootfunction.- See Also:
- Constant Field Values
-
CAST_AS_BUILTIN
public static final int CAST_AS_BUILTIN
- See Also:
- Constant Field Values
-
CASTABLE_AS_BUILTIN
public static final int CASTABLE_AS_BUILTIN
- See Also:
- Constant Field Values
-
XS_QNAME_BUILTIN
public static final int XS_QNAME_BUILTIN
Value ofxs:QName()constructor.- See Also:
- Constant Field Values
-
XS_QNAME_IGNORE_DEFAULT_BUILTIN
public static final int XS_QNAME_IGNORE_DEFAULT_BUILTIN
LikeXS_QNAME_BUILTIN, but ignore the default element namespace. The is appropriate fro resolving atributes.- See Also:
- Constant Field Values
-
handleExtensionDecl
public static final Declaration handleExtensionDecl
-
castAsDecl
public static final Declaration castAsDecl
-
castableAsDecl
public static final Declaration castableAsDecl
-
lastDecl
public static final Declaration lastDecl
Declaration for thefn:last()function.
-
xsQNameDecl
public static final Declaration xsQNameDecl
-
xsQNameIgnoreDefaultDecl
public static final Declaration xsQNameIgnoreDefaultDecl
-
staticBaseUriDecl
public static final Declaration staticBaseUriDecl
-
resolvePrefixDecl
public static final Declaration resolvePrefixDecl
-
functionNamespacePath
public Namespace[] functionNamespacePath
-
-
Constructor Detail
-
XQResolveNames
public XQResolveNames()
-
XQResolveNames
public XQResolveNames(Compilation comp)
-
-
Method Detail
-
makeBuiltin
public static Declaration makeBuiltin(String name, int code)
Create aDeclarationfor a builtin function.
-
makeBuiltin
public static Declaration makeBuiltin(Symbol name, int code)
Create aDeclarationfor a builtin function.
-
push
protected void push(ScopeExp exp)
- Overrides:
pushin classResolveNames
-
visitReferenceExp
protected Expression visitReferenceExp(ReferenceExp exp, Void ignored)
- Overrides:
visitReferenceExpin classResolveNames
-
visitReferenceExp
protected Expression visitReferenceExp(ReferenceExp exp, ApplyExp call)
-
visitSetExp
protected Expression visitSetExp(SetExp exp, Void ignored)
- Overrides:
visitSetExpin classResolveNames
-
resolveModule
public void resolveModule(ModuleExp exp)
- Overrides:
resolveModulein classResolveNames
-
visitApplyExp
protected Expression visitApplyExp(ApplyExp exp, Void ignored)
- Overrides:
visitApplyExpin classExpVisitor<Expression,Void>
-
checkPragma
public Expression checkPragma(Symbol name, Expression contents)
-
-