Package net.sf.saxon.expr
Class ExpressionParser.TemporaryContainer
- java.lang.Object
-
- net.sf.saxon.expr.ExpressionParser.TemporaryContainer
-
- All Implemented Interfaces:
java.io.Serializable,javax.xml.transform.SourceLocator,LocationProvider,Container
- Enclosing class:
- ExpressionParser
protected static class ExpressionParser.TemporaryContainer extends java.lang.Object implements Container, LocationProvider, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemporaryContainer(LocationMap map, int locationId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()intgetColumnNumber(long locationId)Get the column number within the document or module containing a particular locationExecutablegetExecutable()Get the Executable (representing a complete stylesheet or query) of which this Container forms partintgetHostLanguage()Get the host language (XSLT, XQuery, XPath) used to implement the code in this containerintgetLineNumber()intgetLineNumber(long locationId)Get the line number within the document or module containing a particular locationLocationProvidergetLocationProvider()Get the LocationProvider allowing location identifiers to be resolved.java.lang.StringgetPublicId()java.lang.StringgetSystemId()java.lang.StringgetSystemId(long locationId)Get the URI of the document or module containing a particular locationbooleanreplaceSubExpression(Expression original, Expression replacement)Replace one subexpression by a replacement subexpression
-
-
-
Constructor Detail
-
TemporaryContainer
public TemporaryContainer(LocationMap map, int locationId)
-
-
Method Detail
-
getExecutable
public Executable 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
public LocationProvider getLocationProvider()
Description copied from interface:ContainerGet the LocationProvider allowing location identifiers to be resolved.- Specified by:
getLocationProviderin interfaceContainer- Returns:
- the location provider
-
getPublicId
public java.lang.String getPublicId()
- Specified by:
getPublicIdin interfacejavax.xml.transform.SourceLocator
-
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemIdin interfacejavax.xml.transform.SourceLocator
-
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumberin interfacejavax.xml.transform.SourceLocator
-
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumberin interfacejavax.xml.transform.SourceLocator
-
getSystemId
public java.lang.String getSystemId(long locationId)
Description copied from interface:LocationProviderGet the URI of the document 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 or module.
-
getLineNumber
public int getLineNumber(long locationId)
Description copied from interface:LocationProviderGet the line number within the document 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 or module.
-
getColumnNumber
public int getColumnNumber(long locationId)
Description copied from interface:LocationProviderGet the column number within the document 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 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
-
replaceSubExpression
public boolean replaceSubExpression(Expression original, Expression replacement)
Replace one subexpression by a replacement subexpression- Specified by:
replaceSubExpressionin interfaceContainer- Parameters:
original- the original subexpressionreplacement- the replacement subexpression- Returns:
- true if the original subexpression is found
-
-