Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.icl.saxon.style.ExpressionContext
Constructor Summary | |
|
Method Summary | |
boolean |
|
Binding |
|
boolean |
|
String |
|
Class |
|
int |
|
int |
|
Function |
|
String |
|
String |
|
String |
|
boolean |
|
boolean |
|
boolean |
|
int |
|
NameTest |
|
NamespaceTest |
|
StaticContext |
|
String |
|
public boolean allowsKeyFunction()
Determine whether the key() function is permmitted in this context
- Specified by:
- allowsKeyFunction in interface StaticContext
public Binding bindVariable(int fingerprint) throws XPathException
Bind a variable to an object that can be used to refer to it
- Specified by:
- bindVariable in interface StaticContext
- Parameters:
fingerprint
- The fingerprint of the variable name
- Returns:
- a Binding object that can be used to identify it in the Bindery
- Throws:
XPathException
- if the variable has not been declared
public boolean forwardsCompatibleModeIsEnabled() throws XPathException
Determine whether forwards-compatible mode is enabled
- Specified by:
- forwardsCompatibleModeIsEnabled in interface StaticContext
public String getBaseURI()
Get the Base URI of the element containing the expression, for resolving any relative URI's used in the expression. Used by the document() function.
- Specified by:
- getBaseURI in interface StaticContext
public Class getExternalJavaClass(String uri) throws TransformerException
Get an external Java class corresponding to a given namespace prefix, if there is one.
- Specified by:
- getExternalJavaClass in interface StaticContext
- Parameters:
uri
- The namespace URI corresponding to the prefix used in the function call.
- Returns:
- the Java class name if a suitable class exists, otherwise return null.
public int getFingerprint(String qname, boolean useDefault) throws XPathException
Get a fingerprint for a name, using this as the context for namespace resolution
- Specified by:
- getFingerprint in interface StaticContext
- Parameters:
qname
- The name as written, in the form "[prefix:]localname"
- Returns:
- -1 if the name is not already present in the name pool
public int getLineNumber()
Get the line number of the expression within its containing entity Returns -1 if no line number is available
- Specified by:
- getLineNumber in interface StaticContext
public Function getStyleSheetFunction(int fingerprint) throws XPathException
- Specified by:
- getStyleSheetFunction in interface StaticContext
public String getSystemId()
Get the System ID of the entity containing the expression (used for diagnostics)
- Specified by:
- getSystemId in interface StaticContext
public String getURIForPrefix(String prefix) throws XPathException
Get the URI for a prefix, using this Element as the context for namespace resolution
- Specified by:
- getURIForPrefix in interface StaticContext
- Parameters:
prefix
- The prefix
public String getVersion()
Get the effective XSLT version in this region of the stylesheet
- Specified by:
- getVersion in interface StaticContext
public boolean isElementAvailable(String qname) throws XPathException
Determine if an extension element is available
- Specified by:
- isElementAvailable in interface StaticContext
- Throws:
XPathException
- if the name is invalid or the prefix is not declared
public boolean isExtensionNamespace(short uriCode) throws XPathException
Determine whether a given URI code identifies an extension element namespace
- Specified by:
- isExtensionNamespace in interface StaticContext
public boolean isFunctionAvailable(String qname) throws XPathException
Determine if a function is available
- Specified by:
- isFunctionAvailable in interface StaticContext
public final int makeNameCode(String qname, boolean useDefault) throws XPathException
Make a NameCode, using this Element as the context for namespace resolution
- Specified by:
- makeNameCode in interface StaticContext
- Parameters:
qname
- The name as written, in the form "[prefix:]localname"
public NameTest makeNameTest(short nodeType, String qname, boolean useDefault) throws XPathException
Make a NameTest, using this element as the context for namespace resolution
- Specified by:
- makeNameTest in interface StaticContext
public NamespaceTest makeNamespaceTest(short nodeType, String prefix) throws XPathException
Make a NamespaceTest, using this element as the context for namespace resolution
- Specified by:
- makeNamespaceTest in interface StaticContext
public StaticContext makeRuntimeContext(NamePool pool)
Create a context for parsing XPath expressions at runtime, using this styelsheet element for namespace declarations, variables, etc, but using the runtime NamePool
- Specified by:
- makeRuntimeContext in interface StaticContext
public String toString()
String representation for diagnostics