gnu.xquery.lang
Class XQResolveNames

java.lang.Object
  extended by gnu.expr.ExpWalker
      extended by gnu.expr.ResolveNames
          extended by gnu.xquery.lang.XQResolveNames
All Implemented Interfaces:
SourceLocator, org.xml.sax.Locator

public class XQResolveNames
extends ResolveNames


Field Summary
static int BASE_URI_BUILTIN
          Code number for the special doc-available 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 special collection function.
static int COMPARE_BUILTIN
          Code number for the special compare function.
static int CURRENT_DATE_BUILTIN
          Code number for the special current-date function.
static int CURRENT_DATETIME_BUILTIN
          Code number for the special current-dateTime function.
static int CURRENT_TIME_BUILTIN
          Code number for the special current-time function.
 Declaration currentDateDecl
           
 Declaration currentDateTimeDecl
           
 Declaration currentTimeDecl
           
 Declaration currentTimezoneDecl
           
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.
 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 special id function.
static int IDREF_BUILTIN
          Code number for the special idref function.
static int IMPLICIT_TIMEZONE_BUILTIN
          Code number for the special implicit-timezone 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 Declaration lastDecl
          Declaration for the fn: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 NAME_BUILTIN
          Code number for the special name function.
static int NAMESPACE_URI_BUILTIN
          Code number for the special namespace-uri 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 Declaration resolvePrefixDecl
           
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 Declaration staticBaseUriDecl
           
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 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(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  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, walkLetExp, walkScopeExp
 
Methods inherited from class gnu.expr.ExpWalker
error, getColumnNumber, getCompilation, getCurrentLambda, getFileName, getLineNumber, getMessages, getPublicId, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkBeginExp, walkBlockExp, walkClassExp, walkDeclarationType, walkDeclarationTypes, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, 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

COLLECTION_BUILTIN

public static final int COLLECTION_BUILTIN
Code number for the special collection 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

BASE_URI_BUILTIN

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

See Also:
Constant Field Values

RESOLVE_URI_BUILTIN

public static final int RESOLVE_URI_BUILTIN
Code number for the special ressolve-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 special static-base-uri function.

See Also:
Constant Field Values

INDEX_OF_BUILTIN

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

See Also:
Constant Field Values

STRING_BUILTIN

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

See Also:
Constant Field Values

NORMALIZE_SPACE_BUILTIN

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

See Also:
Constant Field Values

UNORDERED_BUILTIN

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

See Also:
Constant Field Values

CURRENT_DATETIME_BUILTIN

public static final int CURRENT_DATETIME_BUILTIN
Code number for the special current-dateTime function.

See Also:
Constant Field Values

CURRENT_DATE_BUILTIN

public static final int CURRENT_DATE_BUILTIN
Code number for the special current-date function.

See Also:
Constant Field Values

CURRENT_TIME_BUILTIN

public static final int CURRENT_TIME_BUILTIN
Code number for the special current-time function.

See Also:
Constant Field Values

IMPLICIT_TIMEZONE_BUILTIN

public static final int IMPLICIT_TIMEZONE_BUILTIN
Code number for the special implicit-timezone function.

See Also:
Constant Field Values

LANG_BUILTIN

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

See Also:
Constant Field Values

NAME_BUILTIN

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

See Also:
Constant Field Values

DEEP_EQUAL_BUILTIN

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

See Also:
Constant Field Values

MIN_BUILTIN

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

See Also:
Constant Field Values

MAX_BUILTIN

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

See Also:
Constant Field Values

NUMBER_BUILTIN

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

See Also:
Constant Field Values

DEFAULT_COLLATION_BUILTIN

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

See Also:
Constant Field Values

ID_BUILTIN

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

See Also:
Constant Field Values

IDREF_BUILTIN

public static final int IDREF_BUILTIN
Code number for the special idref 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

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

HANDLE_EXTENSION_BUILTIN

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

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 the fn:last() function.


currentDateTimeDecl

public Declaration currentDateTimeDecl

currentDateDecl

public Declaration currentDateDecl

currentTimeDecl

public Declaration currentTimeDecl

currentTimezoneDecl

public Declaration currentTimezoneDecl

xsQNameDecl

public static final Declaration xsQNameDecl

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(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.


push

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

walkReferenceExp

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

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp,
                                      ApplyExp call)

walkSetExp

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

resolveModule

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

walkApplyExp

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

checkPragma

public Expression checkPragma(Symbol name,
                              Expression contents)