gnu.xquery.lang
Class XQResolveNames

java.lang.Object
  extended by gnu.expr.ExpWalker
      extended by gnu.expr.ResolveNames
          extended by gnu.xquery.lang.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.
 Namespace[] functionNamespacePath
           
static int LAST_BUILTIN
          Code number for the special last function.
static Declaration lastDecl
          Declaration for the fn: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.
static Declaration xsQNameDecl
           
 
Fields inherited from class gnu.expr.ResolveNames
lookup
 
Constructor Summary
XQResolveNames()
           
XQResolveNames(Compilation comp)
           
 
Method Summary
static Declaration makeBuiltin(java.lang.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(java.lang.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, resolveModule, walkScopeExp
 
Methods inherited from class gnu.expr.ExpWalker
error, getColumn, getCompilation, getCurrentLambda, getFile, getLine, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkBeginExp, walkBlockExp, walkClassExp, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, walkLetExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkSynchronizedExp, walkThisExp, walkTryExp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAST_BUILTIN

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

See Also:
Constant Field Values

POSITION_BUILTIN

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

See Also:
Constant Field Values

XS_QNAME_BUILTIN

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

See Also:
Constant Field Values

COMPARE_BUILTIN

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

See Also:
Constant Field Values

DISTINCT_VALUES_BUILTIN

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

See Also:
Constant Field Values

LOCAL_NAME_BUILTIN

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

See Also:
Constant Field Values

NAMESPACE_URI_BUILTIN

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

See Also:
Constant Field Values

ROOT_BUILTIN

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

See Also:
Constant Field Values

DOC_BUILTIN

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

See Also:
Constant Field Values

DOC_AVAILABLE_BUILTIN

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

See Also:
Constant Field Values

lastDecl

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


xsQNameDecl

public static final Declaration xsQNameDecl

functionNamespacePath

public Namespace[] functionNamespacePath
Constructor Detail

XQResolveNames

public XQResolveNames()

XQResolveNames

public XQResolveNames(Compilation comp)
Method Detail

makeBuiltin

public static Declaration makeBuiltin(java.lang.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(java.lang.String name,
                                  boolean function)

push

protected void push(ScopeExp exp)
Overrides:
push in class ResolveNames

walkReferenceExp

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

walkSetExp

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

walkApplyExp

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