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 int
Code number for the specialbase-uri
function.static final int
static final int
static final Declaration
static final Declaration
static final int
Code number for the specialcollection
function.static final int
Code number for the specialcompare
function.static final int
Code number for the specialdeep-equal
function.static final int
Code number for the specialdefault-collation
function.static final int
Code number for the specialdistinct-values
function.static final int
Code number for the specialdoc-available
function.static final int
Code number for the specialdoc
function.static final int
Code number for internal function to handle extensions.static final Declaration
static final int
Code number for the specialid
function.static final int
Code number for the specialidref
function.static final int
Code number for the specialindex-of
function.static final int
Code number for the speciallang
function.static final int
Code number for the speciallast
function.static final Declaration
Declaration for thefn:last()
function.static final int
Code number for the speciallocal-name
function.static final int
Code number for the specialmax
function.static final int
Code number for the specialmin
function.static final int
Code number for the specialname
function.static final int
Code number for the specialnamespace-uri
function.static final int
Code number for the specialnormalize-space
function.static final int
Code number for the specialnumber
function.static final int
Code number for the specialposition
function.static final int
Code number for internal function that maps prefix to uri.static final int
Code number for the specialressolve-uri
function.static final Declaration
static final int
Code number for the specialroot
function.static final int
Code number for the specialstatic-base-uri
function.static final Declaration
static final int
Code number for the specialstring
function.static final int
Code number for the specialunordered
function.static final int
Value ofxs:QName()
constructor.static final int
LikeXS_QNAME_BUILTIN
, but ignore the default element namespace.static final Declaration
static final Declaration
Fields inherited from class gnu.expr.ResolveNames
lookup
Fields inherited from class gnu.expr.ExpVisitor
currentLambda, exitValue, messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckPragma
(Symbol name, Expression contents) static Declaration
makeBuiltin
(Symbol name, int code) Create aDeclaration
for a builtin function.static Declaration
makeBuiltin
(String name, int code) Create aDeclaration
for a builtin function.protected void
void
resolveModule
(ModuleExp exp) protected Expression
visitApplyExp
(ApplyExp exp, Void ignored) protected Expression
visitReferenceExp
(ReferenceExp exp, ApplyExp call) protected Expression
visitReferenceExp
(ReferenceExp exp, Void ignored) protected Expression
visitSetExp
(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 Details
-
parser
-
LAST_BUILTIN
public static final int LAST_BUILTINCode number for the speciallast
function.- See Also:
-
POSITION_BUILTIN
public static final int POSITION_BUILTINCode number for the specialposition
function.- 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 specialcompare
function.- See Also:
-
DISTINCT_VALUES_BUILTIN
public static final int DISTINCT_VALUES_BUILTINCode number for the specialdistinct-values
function.- See Also:
-
LOCAL_NAME_BUILTIN
public static final int LOCAL_NAME_BUILTINCode number for the speciallocal-name
function.- See Also:
-
NAMESPACE_URI_BUILTIN
public static final int NAMESPACE_URI_BUILTINCode number for the specialnamespace-uri
function.- See Also:
-
COLLECTION_BUILTIN
public static final int COLLECTION_BUILTINCode number for the specialcollection
function.- See Also:
-
DOC_BUILTIN
public static final int DOC_BUILTINCode number for the specialdoc
function.- See Also:
-
DOC_AVAILABLE_BUILTIN
public static final int DOC_AVAILABLE_BUILTINCode number for the specialdoc-available
function.- See Also:
-
BASE_URI_BUILTIN
public static final int BASE_URI_BUILTINCode number for the specialbase-uri
function.- See Also:
-
RESOLVE_URI_BUILTIN
public static final int RESOLVE_URI_BUILTINCode number for the specialressolve-uri
function.- 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-uri
function.- See Also:
-
INDEX_OF_BUILTIN
public static final int INDEX_OF_BUILTINCode number for the specialindex-of
function.- See Also:
-
STRING_BUILTIN
public static final int STRING_BUILTINCode number for the specialstring
function.- See Also:
-
NORMALIZE_SPACE_BUILTIN
public static final int NORMALIZE_SPACE_BUILTINCode number for the specialnormalize-space
function.- See Also:
-
UNORDERED_BUILTIN
public static final int UNORDERED_BUILTINCode number for the specialunordered
function.- See Also:
-
LANG_BUILTIN
public static final int LANG_BUILTINCode number for the speciallang
function.- See Also:
-
NAME_BUILTIN
public static final int NAME_BUILTINCode number for the specialname
function.- See Also:
-
DEEP_EQUAL_BUILTIN
public static final int DEEP_EQUAL_BUILTINCode number for the specialdeep-equal
function.- See Also:
-
MIN_BUILTIN
public static final int MIN_BUILTINCode number for the specialmin
function.- See Also:
-
MAX_BUILTIN
public static final int MAX_BUILTINCode number for the specialmax
function.- See Also:
-
NUMBER_BUILTIN
public static final int NUMBER_BUILTINCode number for the specialnumber
function.- See Also:
-
DEFAULT_COLLATION_BUILTIN
public static final int DEFAULT_COLLATION_BUILTINCode number for the specialdefault-collation
function.- See Also:
-
ID_BUILTIN
public static final int ID_BUILTINCode number for the specialid
function.- See Also:
-
IDREF_BUILTIN
public static final int IDREF_BUILTINCode number for the specialidref
function.- See Also:
-
ROOT_BUILTIN
public static final int ROOT_BUILTINCode number for the specialroot
function.- 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 aDeclaration
for a builtin function. -
makeBuiltin
Create aDeclaration
for a builtin function. -
push
- Overrides:
push
in classResolveNames
-
visitReferenceExp
- Overrides:
visitReferenceExp
in classResolveNames
-
visitReferenceExp
-
visitSetExp
- Overrides:
visitSetExp
in classResolveNames
-
resolveModule
- Overrides:
resolveModule
in classResolveNames
-
visitApplyExp
- Overrides:
visitApplyExp
in classExpVisitor<Expression,
Void>
-
checkPragma
-