public class XQResolveNames extends ResolveNames
SourceLocator.Simple
Modifier and Type | Field and Description |
---|---|
static int |
BASE_URI_BUILTIN
Code number for the special
base-uri 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 |
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 |
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. |
XQParser |
parser |
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 int |
XS_QNAME_IGNORE_DEFAULT_BUILTIN
Like
XS_QNAME_BUILTIN , but ignore the default
element namespace. |
static Declaration |
xsQNameDecl |
static Declaration |
xsQNameIgnoreDefaultDecl |
lookup
currentLambda, exitValue, messages
Constructor and Description |
---|
XQResolveNames() |
XQResolveNames(Compilation comp) |
Modifier and Type | Method and Description |
---|---|
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 |
visitApplyExp(ApplyExp exp,
java.lang.Void ignored) |
protected Expression |
visitReferenceExp(ReferenceExp exp,
ApplyExp call) |
protected Expression |
visitReferenceExp(ReferenceExp exp,
java.lang.Void ignored) |
protected Expression |
visitSetExp(SetExp exp,
java.lang.Void ignored) |
lookup, visitLetExp, visitScopeExp
defaultValue, error, error, update
error, getColumnNumber, getCompilation, getCurrentLambda, getEndColumn, getEndLine, getExitValue, getFileName, getLanguage, getLineNumber, getMessages, getPublicId, getStartColumn, getStartLine, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, visit, visit, visitAndUpdate, visitBeginExp, visitBlockExp, visitCaseExp, visitClassExp, visitDeclarationType, visitDeclarationTypes, visitDefaultArgs, visitExitExp, visitExpression, visitExps, visitExps, visitFluidLetExp, visitIfExp, visitLambdaExp, visitLangExp, visitModuleExp, visitObjectExp, visitQuoteExp, visitSynchronizedExp, visitThisExp, visitTryExp
public XQParser parser
public static final int LAST_BUILTIN
last
function.public static final int POSITION_BUILTIN
position
function.public static final int HANDLE_EXTENSION_BUILTIN
public static final int COMPARE_BUILTIN
compare
function.public static final int DISTINCT_VALUES_BUILTIN
distinct-values
function.public static final int LOCAL_NAME_BUILTIN
local-name
function.public static final int NAMESPACE_URI_BUILTIN
namespace-uri
function.public static final int COLLECTION_BUILTIN
collection
function.public static final int DOC_BUILTIN
doc
function.public static final int DOC_AVAILABLE_BUILTIN
doc-available
function.public static final int BASE_URI_BUILTIN
base-uri
function.public static final int RESOLVE_URI_BUILTIN
ressolve-uri
function.public static final int RESOLVE_PREFIX_BUILTIN
public static final int STATIC_BASE_URI_BUILTIN
static-base-uri
function.public static final int INDEX_OF_BUILTIN
index-of
function.public static final int STRING_BUILTIN
string
function.public static final int NORMALIZE_SPACE_BUILTIN
normalize-space
function.public static final int UNORDERED_BUILTIN
unordered
function.public static final int LANG_BUILTIN
lang
function.public static final int NAME_BUILTIN
name
function.public static final int DEEP_EQUAL_BUILTIN
deep-equal
function.public static final int MIN_BUILTIN
min
function.public static final int MAX_BUILTIN
max
function.public static final int NUMBER_BUILTIN
number
function.public static final int DEFAULT_COLLATION_BUILTIN
default-collation
function.public static final int ID_BUILTIN
id
function.public static final int IDREF_BUILTIN
idref
function.public static final int ROOT_BUILTIN
root
function.public static final int CAST_AS_BUILTIN
public static final int CASTABLE_AS_BUILTIN
public static final int XS_QNAME_BUILTIN
xs:QName()
constructor.public static final int XS_QNAME_IGNORE_DEFAULT_BUILTIN
XS_QNAME_BUILTIN
, but ignore the default
element namespace. The is appropriate fro resolving atributes.public static final Declaration handleExtensionDecl
public static final Declaration castAsDecl
public static final Declaration castableAsDecl
public static final Declaration lastDecl
fn:last()
function.public static final Declaration xsQNameDecl
public static final Declaration xsQNameIgnoreDefaultDecl
public static final Declaration staticBaseUriDecl
public static final Declaration resolvePrefixDecl
public Namespace[] functionNamespacePath
public XQResolveNames()
public XQResolveNames(Compilation comp)
public static Declaration makeBuiltin(java.lang.String name, int code)
Declaration
for a builtin function.public static Declaration makeBuiltin(Symbol name, int code)
Declaration
for a builtin function.protected void push(ScopeExp exp)
push
in class ResolveNames
protected Expression visitReferenceExp(ReferenceExp exp, java.lang.Void ignored)
visitReferenceExp
in class ResolveNames
protected Expression visitReferenceExp(ReferenceExp exp, ApplyExp call)
protected Expression visitSetExp(SetExp exp, java.lang.Void ignored)
visitSetExp
in class ResolveNames
public void resolveModule(ModuleExp exp)
resolveModule
in class ResolveNames
protected Expression visitApplyExp(ApplyExp exp, java.lang.Void ignored)
visitApplyExp
in class ExpVisitor<Expression,java.lang.Void>
public Expression checkPragma(Symbol name, Expression contents)