Class ExpressionParser.TemporaryContainer
java.lang.Object
net.sf.saxon.expr.parser.ExpressionParser.TemporaryContainer
- All Implemented Interfaces:
Serializable, SourceLocator, LocationProvider, Container
- Enclosing class:
ExpressionParser
protected static class ExpressionParser.TemporaryContainer
extends Object
implements Container, LocationProvider, Serializable
A Container used on a temporary basis to hold an expression while it is being parsed
- Author:
- Michael Kay
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintgetColumnNumber(long locationId) Get the column number within the document, entity, or module containing a particular locationintGet the granularity of the container.Get the Executable (representing a complete stylesheet or query) of which this Container forms partintGet the host language (XSLT, XQuery, XPath) used to implement the code in this containerintintgetLineNumber(long locationId) Get the line number within the document, entity or module containing a particular locationGet the LocationProvider allowing location identifiers to be resolved.getSystemId(long locationId) Get the URI of the document, entity, or module containing a particular locationvoidsetExecutable(Executable exec)
-
Constructor Details
-
TemporaryContainer
-
-
Method Details
-
getContainerGranularity
public int getContainerGranularity()Get the granularity of the container.- Specified by:
getContainerGranularityin interfaceContainer- Returns:
- 0 for a temporary container created during parsing; 1 for a container that operates at the level of an XPath expression; 2 for a container at the level of a global function or template
-
setExecutable
-
getExecutable
Description copied from interface:ContainerGet the Executable (representing a complete stylesheet or query) of which this Container forms part- Specified by:
getExecutablein interfaceContainer- Returns:
- the executable
-
getLocationProvider
Description copied from interface:ContainerGet the LocationProvider allowing location identifiers to be resolved.- Specified by:
getLocationProviderin interfaceContainer- Returns:
- the location provider
-
getPublicId
- Specified by:
getPublicIdin interfaceSourceLocator
-
getSystemId
- Specified by:
getSystemIdin interfaceSourceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceSourceLocator
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceSourceLocator
-
getSystemId
Description copied from interface:LocationProviderGet the URI of the document, entity, or module containing a particular location- Specified by:
getSystemIdin interfaceLocationProvider- Parameters:
locationId- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the URI of the document, XML entity or module. For a SourceLocationProvider this will be the URI of the document or entity (the URI that would be the base URI if there were no xml:base attributes). In other cases it may identify the query or stylesheet module currently being executed.
-
getLineNumber
public int getLineNumber(long locationId) Description copied from interface:LocationProviderGet the line number within the document, entity or module containing a particular location- Specified by:
getLineNumberin interfaceLocationProvider- Parameters:
locationId- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the line number within the document, entity or module, or -1 if no information is available.
-
getColumnNumber
public int getColumnNumber(long locationId) Description copied from interface:LocationProviderGet the column number within the document, entity, or module containing a particular location- Specified by:
getColumnNumberin interfaceLocationProvider- Parameters:
locationId- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the column number within the document, entity, or module, or -1 if this is not available
-
getHostLanguage
public int getHostLanguage()Get the host language (XSLT, XQuery, XPath) used to implement the code in this container- Specified by:
getHostLanguagein interfaceContainer- Returns:
- typically
Configuration.XSLTorConfiguration.XQUERY
-