gnu.xquery.lang

Class XQResolveNames

Implemented Interfaces:
org.xml.sax.Locator, SourceLocator

public class XQResolveNames
extends ResolveNames

Field Summary

static int
BASE_URI_BUILTIN
Code number for the special doc-available function.
static int
CASTABLE_AS_BUILTIN
static int
CAST_AS_BUILTIN
static int
COLLECTION_BUILTIN
Code number for the special collection function.
static int
COMPARE_BUILTIN
Code number for the special compare function.
static int
DEEP_EQUAL_BUILTIN
Code number for the special deep-equal function.
static int
DEFAULT_COLLATION_BUILTIN
Code number for the special default-collation function.
static int
DISTINCT_VALUES_BUILTIN
Code number for the special distinct-values function.
static int
DOC_AVAILABLE_BUILTIN
Code number for the special doc-available function.
static int
DOC_BUILTIN
Code number for the special doc function.
static int
HANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.
static int
IDREF_BUILTIN
Code number for the special idref function.
static int
ID_BUILTIN
Code number for the special id function.
static int
INDEX_OF_BUILTIN
Code number for the special index-of function.
static int
LANG_BUILTIN
Code number for the special lang function.
static int
LAST_BUILTIN
Code number for the special last function.
static int
LOCAL_NAME_BUILTIN
Code number for the special local-name function.
static int
MAX_BUILTIN
Code number for the special max function.
static int
MIN_BUILTIN
Code number for the special min function.
static int
NAMESPACE_URI_BUILTIN
Code number for the special namespace-uri function.
static int
NAME_BUILTIN
Code number for the special name function.
static int
NORMALIZE_SPACE_BUILTIN
Code number for the special normalize-space function.
static int
NUMBER_BUILTIN
Code number for the special number function.
static int
POSITION_BUILTIN
Code number for the special position 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 special ressolve-uri function.
static int
ROOT_BUILTIN
Code number for the special root function.
static int
STATIC_BASE_URI_BUILTIN
Code number for the special static-base-uri function.
static int
STRING_BUILTIN
Code number for the special string function.
static int
UNORDERED_BUILTIN
Code number for the special unordered function.
static int
XS_QNAME_BUILTIN
Value of xs:QName() constructor.
static Declaration
castAsDecl
static Declaration
castableAsDecl
Namespace[]
functionNamespacePath
static Declaration
handleExtensionDecl
static Declaration
lastDecl
Declaration for the fn:last() function.
static Declaration
resolvePrefixDecl
static Declaration
staticBaseUriDecl
static Declaration
xsQNameDecl

Fields inherited from class gnu.expr.ResolveNames

lookup

Fields inherited from class gnu.expr.ExpWalker

currentLambda, messages

Constructor Summary

XQResolveNames()
XQResolveNames(Compilation comp)

Method Summary

Expression
checkPragma(Symbol name, Expression contents)
static Declaration
makeBuiltin(String name, int code)
Create a Declaration for a builtin function.
static Declaration
makeBuiltin(Symbol name, int code)
Create a Declaration for a builtin function.
protected void
push(ScopeExp exp)
void
resolveModule(ModuleExp exp)
protected Expression
walkApplyExp(ApplyExp exp)
protected Expression
walkReferenceExp(ReferenceExp exp)
protected Expression
walkReferenceExp(ReferenceExp exp, ApplyExp call)
protected Expression
walkSetExp(SetExp exp)

Methods inherited from class gnu.expr.ResolveNames

lookup, push, resolveModule, walkLetExp, walkReferenceExp, walkScopeExp, walkSetExp

Methods inherited from class gnu.expr.ExpWalker

error, getColumnNumber, getCompilation, getCurrentLambda, getFileName, getLineNumber, getMessages, getPublicId, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkApplyExp, walkBeginExp, walkBlockExp, walkClassExp, walkDeclarationType, walkDeclarationTypes, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, walkLetExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkReferenceExp, walkScopeExp, walkSetExp, walkSynchronizedExp, walkThisExp, walkTryExp

Field Details

BASE_URI_BUILTIN

public static final int BASE_URI_BUILTIN
Code number for the special doc-available function.
Field Value:
-11

CASTABLE_AS_BUILTIN

public static final int CASTABLE_AS_BUILTIN
Field Value:
-34

CAST_AS_BUILTIN

public static final int CAST_AS_BUILTIN
Field Value:
-33

COLLECTION_BUILTIN

public static final int COLLECTION_BUILTIN
Code number for the special collection function.
Field Value:
-8

COMPARE_BUILTIN

public static final int COMPARE_BUILTIN
Code number for the special compare function.
Field Value:
-4

DEEP_EQUAL_BUILTIN

public static final int DEEP_EQUAL_BUILTIN
Code number for the special deep-equal function.
Field Value:
-25

DEFAULT_COLLATION_BUILTIN

public static final int DEFAULT_COLLATION_BUILTIN
Code number for the special default-collation function.
Field Value:
-29

DISTINCT_VALUES_BUILTIN

public static final int DISTINCT_VALUES_BUILTIN
Code number for the special distinct-values function.
Field Value:
-5

DOC_AVAILABLE_BUILTIN

public static final int DOC_AVAILABLE_BUILTIN
Code number for the special doc-available function.
Field Value:
-10

DOC_BUILTIN

public static final int DOC_BUILTIN
Code number for the special doc function.
Field Value:
-9

HANDLE_EXTENSION_BUILTIN

public static final int HANDLE_EXTENSION_BUILTIN
Code number for internal function to handle extensions.
Field Value:
-35

IDREF_BUILTIN

public static final int IDREF_BUILTIN
Code number for the special idref function.
Field Value:
-31

ID_BUILTIN

public static final int ID_BUILTIN
Code number for the special id function.
Field Value:
-30

INDEX_OF_BUILTIN

public static final int INDEX_OF_BUILTIN
Code number for the special index-of function.
Field Value:
-15

LANG_BUILTIN

public static final int LANG_BUILTIN
Code number for the special lang function.
Field Value:
-23

LAST_BUILTIN

public static final int LAST_BUILTIN
Code number for the special last function.
Field Value:
-1

LOCAL_NAME_BUILTIN

public static final int LOCAL_NAME_BUILTIN
Code number for the special local-name function.
Field Value:
-6

MAX_BUILTIN

public static final int MAX_BUILTIN
Code number for the special max function.
Field Value:
-27

MIN_BUILTIN

public static final int MIN_BUILTIN
Code number for the special min function.
Field Value:
-26

NAMESPACE_URI_BUILTIN

public static final int NAMESPACE_URI_BUILTIN
Code number for the special namespace-uri function.
Field Value:
-7

NAME_BUILTIN

public static final int NAME_BUILTIN
Code number for the special name function.
Field Value:
-24

NORMALIZE_SPACE_BUILTIN

public static final int NORMALIZE_SPACE_BUILTIN
Code number for the special normalize-space function.
Field Value:
-17

NUMBER_BUILTIN

public static final int NUMBER_BUILTIN
Code number for the special number function.
Field Value:
-28

POSITION_BUILTIN

public static final int POSITION_BUILTIN
Code number for the special position function.
Field Value:
-2

RESOLVE_PREFIX_BUILTIN

public static final int RESOLVE_PREFIX_BUILTIN
Code number for internal function that maps prefix to uri.
Field Value:
-13

RESOLVE_URI_BUILTIN

public static final int RESOLVE_URI_BUILTIN
Code number for the special ressolve-uri function.
Field Value:
-12

ROOT_BUILTIN

public static final int ROOT_BUILTIN
Code number for the special root function.
Field Value:
-32

STATIC_BASE_URI_BUILTIN

public static final int STATIC_BASE_URI_BUILTIN
Code number for the special static-base-uri function.
Field Value:
-14

STRING_BUILTIN

public static final int STRING_BUILTIN
Code number for the special string function.
Field Value:
-16

UNORDERED_BUILTIN

public static final int UNORDERED_BUILTIN
Code number for the special unordered function.
Field Value:
-18

XS_QNAME_BUILTIN

public static final int XS_QNAME_BUILTIN
Value of xs:QName() constructor.
Field Value:
-3

castAsDecl

public static final Declaration castAsDecl

castableAsDecl

public static final Declaration castableAsDecl

functionNamespacePath

public Namespace[] functionNamespacePath

handleExtensionDecl

public static final Declaration handleExtensionDecl

lastDecl

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

resolvePrefixDecl

public static final Declaration resolvePrefixDecl

staticBaseUriDecl

public static final Declaration staticBaseUriDecl

xsQNameDecl

public static final Declaration xsQNameDecl

Constructor Details

XQResolveNames

public XQResolveNames()

XQResolveNames

public XQResolveNames(Compilation comp)

Method Details

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)
Overrides:
push in interface ResolveNames

resolveModule

public void resolveModule(ModuleExp exp)
Overrides:
resolveModule in interface ResolveNames

walkApplyExp

protected Expression walkApplyExp(ApplyExp exp)
Overrides:
walkApplyExp in interface ExpWalker

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp)
Overrides:
walkReferenceExp in interface ResolveNames

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp,
                                      ApplyExp call)

walkSetExp

protected Expression walkSetExp(SetExp exp)
Overrides:
walkSetExp in interface ResolveNames