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 int
BASE_URI_BUILTIN
Code number for the specialbase-uri
function.static int
CAST_AS_BUILTIN
static int
CASTABLE_AS_BUILTIN
static Declaration
castableAsDecl
static Declaration
castAsDecl
static int
COLLECTION_BUILTIN
Code number for the specialcollection
function.static int
COMPARE_BUILTIN
Code number for the specialcompare
function.static int
DEEP_EQUAL_BUILTIN
Code number for the specialdeep-equal
function.static int
DEFAULT_COLLATION_BUILTIN
Code number for the specialdefault-collation
function.static int
DISTINCT_VALUES_BUILTIN
Code number for the specialdistinct-values
function.static int
DOC_AVAILABLE_BUILTIN
Code number for the specialdoc-available
function.static int
DOC_BUILTIN
Code number for the specialdoc
function.Namespace[]
functionNamespacePath
static int
HANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.static Declaration
handleExtensionDecl
static int
ID_BUILTIN
Code number for the specialid
function.static int
IDREF_BUILTIN
Code number for the specialidref
function.static int
INDEX_OF_BUILTIN
Code number for the specialindex-of
function.static int
LANG_BUILTIN
Code number for the speciallang
function.static int
LAST_BUILTIN
Code number for the speciallast
function.static Declaration
lastDecl
Declaration for thefn:last()
function.static int
LOCAL_NAME_BUILTIN
Code number for the speciallocal-name
function.static int
MAX_BUILTIN
Code number for the specialmax
function.static int
MIN_BUILTIN
Code number for the specialmin
function.static int
NAME_BUILTIN
Code number for the specialname
function.static int
NAMESPACE_URI_BUILTIN
Code number for the specialnamespace-uri
function.static int
NORMALIZE_SPACE_BUILTIN
Code number for the specialnormalize-space
function.static int
NUMBER_BUILTIN
Code number for the specialnumber
function.XQParser
parser
static int
POSITION_BUILTIN
Code number for the specialposition
function.static int
RESOLVE_PREFIX_BUILTIN
Code number for internal function that maps prefix to uri.static int
RESOLVE_URI_BUILTIN
Code number for the specialressolve-uri
function.static Declaration
resolvePrefixDecl
static int
ROOT_BUILTIN
Code number for the specialroot
function.static int
STATIC_BASE_URI_BUILTIN
Code number for the specialstatic-base-uri
function.static Declaration
staticBaseUriDecl
static int
STRING_BUILTIN
Code number for the specialstring
function.static int
UNORDERED_BUILTIN
Code number for the specialunordered
function.static int
XS_QNAME_BUILTIN
Value ofxs:QName()
constructor.static int
XS_QNAME_IGNORE_DEFAULT_BUILTIN
LikeXS_QNAME_BUILTIN
, but ignore the default element namespace.static Declaration
xsQNameDecl
static Declaration
xsQNameIgnoreDefaultDecl
-
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 Expression
checkPragma(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
push(ScopeExp exp)
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 Detail
-
parser
public XQParser parser
-
LAST_BUILTIN
public static final int LAST_BUILTIN
Code number for the speciallast
function.- See Also:
- Constant Field Values
-
POSITION_BUILTIN
public static final int POSITION_BUILTIN
Code number for the specialposition
function.- 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 specialcompare
function.- See Also:
- Constant Field Values
-
DISTINCT_VALUES_BUILTIN
public static final int DISTINCT_VALUES_BUILTIN
Code number for the specialdistinct-values
function.- See Also:
- Constant Field Values
-
LOCAL_NAME_BUILTIN
public static final int LOCAL_NAME_BUILTIN
Code number for the speciallocal-name
function.- See Also:
- Constant Field Values
-
NAMESPACE_URI_BUILTIN
public static final int NAMESPACE_URI_BUILTIN
Code number for the specialnamespace-uri
function.- See Also:
- Constant Field Values
-
COLLECTION_BUILTIN
public static final int COLLECTION_BUILTIN
Code number for the specialcollection
function.- See Also:
- Constant Field Values
-
DOC_BUILTIN
public static final int DOC_BUILTIN
Code number for the specialdoc
function.- See Also:
- Constant Field Values
-
DOC_AVAILABLE_BUILTIN
public static final int DOC_AVAILABLE_BUILTIN
Code number for the specialdoc-available
function.- See Also:
- Constant Field Values
-
BASE_URI_BUILTIN
public static final int BASE_URI_BUILTIN
Code number for the specialbase-uri
function.- See Also:
- Constant Field Values
-
RESOLVE_URI_BUILTIN
public static final int RESOLVE_URI_BUILTIN
Code number for the specialressolve-uri
function.- 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-uri
function.- See Also:
- Constant Field Values
-
INDEX_OF_BUILTIN
public static final int INDEX_OF_BUILTIN
Code number for the specialindex-of
function.- See Also:
- Constant Field Values
-
STRING_BUILTIN
public static final int STRING_BUILTIN
Code number for the specialstring
function.- See Also:
- Constant Field Values
-
NORMALIZE_SPACE_BUILTIN
public static final int NORMALIZE_SPACE_BUILTIN
Code number for the specialnormalize-space
function.- See Also:
- Constant Field Values
-
UNORDERED_BUILTIN
public static final int UNORDERED_BUILTIN
Code number for the specialunordered
function.- See Also:
- Constant Field Values
-
LANG_BUILTIN
public static final int LANG_BUILTIN
Code number for the speciallang
function.- See Also:
- Constant Field Values
-
NAME_BUILTIN
public static final int NAME_BUILTIN
Code number for the specialname
function.- See Also:
- Constant Field Values
-
DEEP_EQUAL_BUILTIN
public static final int DEEP_EQUAL_BUILTIN
Code number for the specialdeep-equal
function.- See Also:
- Constant Field Values
-
MIN_BUILTIN
public static final int MIN_BUILTIN
Code number for the specialmin
function.- See Also:
- Constant Field Values
-
MAX_BUILTIN
public static final int MAX_BUILTIN
Code number for the specialmax
function.- See Also:
- Constant Field Values
-
NUMBER_BUILTIN
public static final int NUMBER_BUILTIN
Code number for the specialnumber
function.- See Also:
- Constant Field Values
-
DEFAULT_COLLATION_BUILTIN
public static final int DEFAULT_COLLATION_BUILTIN
Code number for the specialdefault-collation
function.- See Also:
- Constant Field Values
-
ID_BUILTIN
public static final int ID_BUILTIN
Code number for the specialid
function.- See Also:
- Constant Field Values
-
IDREF_BUILTIN
public static final int IDREF_BUILTIN
Code number for the specialidref
function.- See Also:
- Constant Field Values
-
ROOT_BUILTIN
public static final int ROOT_BUILTIN
Code number for the specialroot
function.- 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 aDeclaration
for a builtin function.
-
makeBuiltin
public static Declaration makeBuiltin(Symbol name, int code)
Create aDeclaration
for a builtin function.
-
push
protected void push(ScopeExp exp)
- Overrides:
push
in classResolveNames
-
visitReferenceExp
protected Expression visitReferenceExp(ReferenceExp exp, Void ignored)
- Overrides:
visitReferenceExp
in classResolveNames
-
visitReferenceExp
protected Expression visitReferenceExp(ReferenceExp exp, ApplyExp call)
-
visitSetExp
protected Expression visitSetExp(SetExp exp, Void ignored)
- Overrides:
visitSetExp
in classResolveNames
-
resolveModule
public void resolveModule(ModuleExp exp)
- Overrides:
resolveModule
in classResolveNames
-
visitApplyExp
protected Expression visitApplyExp(ApplyExp exp, Void ignored)
- Overrides:
visitApplyExp
in classExpVisitor<Expression,Void>
-
checkPragma
public Expression checkPragma(Symbol name, Expression contents)
-
-