gnu.xquery.lang

Class XQResolveNames

public class XQResolveNames extends ResolveNames

Field Summary
static intBASE_URI_BUILTIN
Code number for the special doc-available function.
static DeclarationcastAsDecl
static DeclarationcastableAsDecl
static intCASTABLE_AS_BUILTIN
static intCAST_AS_BUILTIN
static intCOLLECTION_BUILTIN
Code number for the special collection function.
static intCOMPARE_BUILTIN
Code number for the special compare function.
static intDEEP_EQUAL_BUILTIN
Code number for the special deep-equal function.
static intDEFAULT_COLLATION_BUILTIN
Code number for the special default-collation function.
static intDISTINCT_VALUES_BUILTIN
Code number for the special distinct-values function.
static intDOC_AVAILABLE_BUILTIN
Code number for the special doc-available function.
static intDOC_BUILTIN
Code number for the special doc function.
Namespace[]functionNamespacePath
static DeclarationhandleExtensionDecl
static intHANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.
static intIDREF_BUILTIN
Code number for the special idref function.
static intID_BUILTIN
Code number for the special id function.
static intINDEX_OF_BUILTIN
Code number for the special index-of function.
static DeclarationlastDecl
Declaration for the fn:last() function.
static intLANG_BUILTIN
Code number for the special lang function.
static intLAST_BUILTIN
Code number for the special last function.
static intLOCAL_NAME_BUILTIN
Code number for the special local-name function.
static intMAX_BUILTIN
Code number for the special max function.
static intMIN_BUILTIN
Code number for the special min function.
static intNAMESPACE_URI_BUILTIN
Code number for the special namespace-uri function.
static intNAME_BUILTIN
Code number for the special name function.
static intNORMALIZE_SPACE_BUILTIN
Code number for the special normalize-space function.
static intNUMBER_BUILTIN
Code number for the special number function.
static intPOSITION_BUILTIN
Code number for the special position function.
static DeclarationresolvePrefixDecl
static intRESOLVE_PREFIX_BUILTIN
Code number for internal function that maps prefix to uri.
static intRESOLVE_URI_BUILTIN
Code number for the special ressolve-uri function.
static intROOT_BUILTIN
Code number for the special root function.
static DeclarationstaticBaseUriDecl
static intSTATIC_BASE_URI_BUILTIN
Code number for the special static-base-uri function.
static intSTRING_BUILTIN
Code number for the special string function.
static intUNORDERED_BUILTIN
Code number for the special unordered function.
static DeclarationxsQNameDecl
static intXS_QNAME_BUILTIN
Value of {@code xs:QName()} constructor.
Constructor Summary
XQResolveNames()
XQResolveNames(Compilation comp)
Method Summary
ExpressioncheckPragma(Symbol name, Expression contents)
static DeclarationmakeBuiltin(String name, int code)
Create a Declaration for a builtin function.
static DeclarationmakeBuiltin(Symbol name, int code)
Create a Declaration for a builtin function.
protected voidpush(ScopeExp exp)
voidresolveModule(ModuleExp exp)
protected ExpressionwalkApplyExp(ApplyExp exp)
protected ExpressionwalkReferenceExp(ReferenceExp exp)
protected ExpressionwalkReferenceExp(ReferenceExp exp, ApplyExp call)
protected ExpressionwalkSetExp(SetExp exp)

Field Detail

BASE_URI_BUILTIN

public static final int BASE_URI_BUILTIN
Code number for the special doc-available function.

castAsDecl

public static final Declaration castAsDecl

castableAsDecl

public static final Declaration castableAsDecl

CASTABLE_AS_BUILTIN

public static final int CASTABLE_AS_BUILTIN

CAST_AS_BUILTIN

public static final int CAST_AS_BUILTIN

COLLECTION_BUILTIN

public static final int COLLECTION_BUILTIN
Code number for the special collection function.

COMPARE_BUILTIN

public static final int COMPARE_BUILTIN
Code number for the special compare function.

DEEP_EQUAL_BUILTIN

public static final int DEEP_EQUAL_BUILTIN
Code number for the special deep-equal function.

DEFAULT_COLLATION_BUILTIN

public static final int DEFAULT_COLLATION_BUILTIN
Code number for the special default-collation function.

DISTINCT_VALUES_BUILTIN

public static final int DISTINCT_VALUES_BUILTIN
Code number for the special distinct-values function.

DOC_AVAILABLE_BUILTIN

public static final int DOC_AVAILABLE_BUILTIN
Code number for the special doc-available function.

DOC_BUILTIN

public static final int DOC_BUILTIN
Code number for the special doc function.

functionNamespacePath

public Namespace[] functionNamespacePath

handleExtensionDecl

public static final Declaration handleExtensionDecl

HANDLE_EXTENSION_BUILTIN

public static final int HANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.

IDREF_BUILTIN

public static final int IDREF_BUILTIN
Code number for the special idref function.

ID_BUILTIN

public static final int ID_BUILTIN
Code number for the special id function.

INDEX_OF_BUILTIN

public static final int INDEX_OF_BUILTIN
Code number for the special index-of function.

lastDecl

public static final Declaration lastDecl
Declaration for the fn:last() function.

LANG_BUILTIN

public static final int LANG_BUILTIN
Code number for the special lang function.

LAST_BUILTIN

public static final int LAST_BUILTIN
Code number for the special last function.

LOCAL_NAME_BUILTIN

public static final int LOCAL_NAME_BUILTIN
Code number for the special local-name function.

MAX_BUILTIN

public static final int MAX_BUILTIN
Code number for the special max function.

MIN_BUILTIN

public static final int MIN_BUILTIN
Code number for the special min function.

NAMESPACE_URI_BUILTIN

public static final int NAMESPACE_URI_BUILTIN
Code number for the special namespace-uri function.

NAME_BUILTIN

public static final int NAME_BUILTIN
Code number for the special name function.

NORMALIZE_SPACE_BUILTIN

public static final int NORMALIZE_SPACE_BUILTIN
Code number for the special normalize-space function.

NUMBER_BUILTIN

public static final int NUMBER_BUILTIN
Code number for the special number function.

POSITION_BUILTIN

public static final int POSITION_BUILTIN
Code number for the special position function.

resolvePrefixDecl

public static final Declaration resolvePrefixDecl

RESOLVE_PREFIX_BUILTIN

public static final int RESOLVE_PREFIX_BUILTIN
Code number for internal function that maps prefix to uri.

RESOLVE_URI_BUILTIN

public static final int RESOLVE_URI_BUILTIN
Code number for the special ressolve-uri function.

ROOT_BUILTIN

public static final int ROOT_BUILTIN
Code number for the special root function.

staticBaseUriDecl

public static final Declaration staticBaseUriDecl

STATIC_BASE_URI_BUILTIN

public static final int STATIC_BASE_URI_BUILTIN
Code number for the special static-base-uri function.

STRING_BUILTIN

public static final int STRING_BUILTIN
Code number for the special string function.

UNORDERED_BUILTIN

public static final int UNORDERED_BUILTIN
Code number for the special unordered function.

xsQNameDecl

public static final Declaration xsQNameDecl

XS_QNAME_BUILTIN

public static final int XS_QNAME_BUILTIN
Value of {@code xs:QName()} constructor.

Constructor Detail

XQResolveNames

public XQResolveNames()

XQResolveNames

public XQResolveNames(Compilation comp)

Method Detail

checkPragma

public Expression checkPragma(Symbol name, Expression contents)

makeBuiltin

public static Declaration makeBuiltin(String name, int code)
Create a Declaration for a builtin function.

makeBuiltin

public static Declaration makeBuiltin(Symbol name, int code)
Create a Declaration for a builtin function.

push

protected void push(ScopeExp exp)

resolveModule

public void resolveModule(ModuleExp exp)

walkApplyExp

protected Expression walkApplyExp(ApplyExp exp)

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp)

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp, ApplyExp call)

walkSetExp

protected Expression walkSetExp(SetExp exp)