public interface StaticContext
Modifier and Type | Method and Description |
---|---|
Expression |
bindVariable(StructuredQName qName)
Bind a variable used in this expression to the Binding object in which it is declared
|
Configuration |
getConfiguration()
Get the system configuration
|
Location |
getContainingLocation()
Get the containing location.
|
DecimalFormatManager |
getDecimalFormatManager()
Get a DecimalFormatManager to resolve the names of decimal formats used in calls
to the format-number() function.
|
java.lang.String |
getDefaultCollationName()
Get the name of the default collation.
|
java.lang.String |
getDefaultElementNamespace()
Get the default XPath namespace for elements and types
|
java.lang.String |
getDefaultFunctionNamespace()
Get the default function namespace
|
FunctionLibrary |
getFunctionLibrary()
Get the function library containing all the in-scope functions available in this static
context
|
java.util.Set<java.lang.String> |
getImportedSchemaNamespaces()
Get the set of imported schemas
|
KeyManager |
getKeyManager()
Get the KeyManager, containing definitions of keys available for use.
|
NamespaceResolver |
getNamespaceResolver()
Get a namespace resolver to resolve the namespaces declared in this static context.
|
PackageData |
getPackageData()
Get information about the containing package (unit of compilation)
|
ItemType |
getRequiredContextItemType()
Get the required type of the context item.
|
java.lang.String |
getStaticBaseURI()
Get the static base URI, for resolving any relative URI's used
in the expression.
|
java.lang.String |
getSystemId()
Get the System ID of the container of the expression.
|
int |
getXPathVersion()
Get the XPath language level supported, as an integer (being the actual version
number times ten).
|
boolean |
isImportedSchema(java.lang.String namespace)
Ask whether a Schema for a given target namespace has been imported.
|
boolean |
isInBackwardsCompatibleMode()
Determine whether backwards compatibility mode is used
|
void |
issueWarning(java.lang.String message,
Location locator)
Issue a compile-time warning.
|
XPathContext |
makeEarlyEvaluationContext()
Construct a dynamic context for early evaluation of constant subexpressions.
|
RetainedStaticContext |
makeRetainedStaticContext()
Construct a RetainedStaticContext, which extracts information from this StaticContext
to provide the subset of static context information that is potentially needed
during expression evaluation
|
ItemType |
resolveTypeAlias(StructuredQName typeName)
Get type alias.
|
Configuration getConfiguration()
PackageData getPackageData()
XPathContext makeEarlyEvaluationContext()
RetainedStaticContext makeRetainedStaticContext()
Location getContainingLocation()
void issueWarning(java.lang.String message, Location locator)
message
- The warning message. This should not contain any prefix such as "Warning".locator
- the location of the construct in question. May be null.java.lang.String getSystemId()
java.lang.String getStaticBaseURI()
Expression bindVariable(StructuredQName qName) throws XPathException
qName
- The name of the variableVariableReference
, suitably initialized to refer to the corresponding variable declaration,
but in general it can be any expression which returns the variable's value when evaluated.XPathException
- if the variable cannot be bound (has not been declared)FunctionLibrary getFunctionLibrary()
java.lang.String getDefaultCollationName()
java.lang.String getDefaultElementNamespace()
java.lang.String getDefaultFunctionNamespace()
boolean isInBackwardsCompatibleMode()
boolean isImportedSchema(java.lang.String namespace)
namespace
- the target namespace in questionjava.util.Set<java.lang.String> getImportedSchemaNamespaces()
NamespaceResolver getNamespaceResolver()
ItemType getRequiredContextItemType()
DecimalFormatManager getDecimalFormatManager()
int getXPathVersion()
KeyManager getKeyManager()
ItemType resolveTypeAlias(StructuredQName typeName)
typeName
- the name of the type aliasCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.