gnu.xquery.lang

Class XQResolveNames


public class XQResolveNames
extends ResolveNames

Field Summary

static int
COMPARE_BUILTIN
Code number for the special compare 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
LAST_BUILTIN
Code number for the special last function.
static int
LOCAL_NAME_BUILTIN
Code number for the special local-name function.
static int
NAMESPACE_URI_BUILTIN
Code number for the special namespace-uri function.
static int
POSITION_BUILTIN
Code number for the special position function.
static int
ROOT_BUILTIN
Code number for the special root function.
static int
XS_QNAME_BUILTIN
Value of xs:QName() constructor.
Namespace[]
functionNamespacePath
static Declaration
lastDecl
Declaration for the fn:last() function.
static Declaration
xsQNameDecl

Fields inherited from class gnu.expr.ResolveNames

lookup

Constructor Summary

XQResolveNames()
XQResolveNames(Compilation comp)

Method Summary

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 Symbol
namespaceResolve(String name, boolean function)
protected void
push(ScopeExp exp)
protected Expression
walkApplyExp(ApplyExp exp)
protected Expression
walkReferenceExp(ReferenceExp exp)
protected Expression
walkSetExp(SetExp exp)

Methods inherited from class gnu.expr.ResolveNames

lookup, push, resolveModule, walkReferenceExp, walkScopeExp, walkSetExp

Methods inherited from class gnu.expr.ExpWalker

error, getColumn, getCompilation, getCurrentLambda, getFile, getLine, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkApplyExp, walkBeginExp, walkBlockExp, walkClassExp, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, walkLetExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkReferenceExp, walkScopeExp, walkSetExp, walkSynchronizedExp, walkThisExp, walkTryExp

Field Details

COMPARE_BUILTIN

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

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

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

NAMESPACE_URI_BUILTIN

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

POSITION_BUILTIN

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

ROOT_BUILTIN

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

XS_QNAME_BUILTIN

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

functionNamespacePath

public Namespace[] functionNamespacePath

lastDecl

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

xsQNameDecl

public static final Declaration xsQNameDecl

Constructor Details

XQResolveNames

public XQResolveNames()

XQResolveNames

public XQResolveNames(Compilation comp)

Method Details

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.

namespaceResolve

protected Symbol namespaceResolve(String name,
                                  boolean function)

push

protected void push(ScopeExp exp)
Overrides:
push 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

walkSetExp

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