Package net.sf.saxon.expr
Class ExpressionParser.TemporaryContainer
java.lang.Object
net.sf.saxon.expr.ExpressionParser.TemporaryContainer
- All Implemented Interfaces:
Serializable
,SourceLocator
,LocationProvider
,Container
- Enclosing class:
ExpressionParser
protected static class ExpressionParser.TemporaryContainer
extends Object
implements Container, LocationProvider, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the Executable (representing a complete stylesheet or query) of which this Container forms partint
Get the host language (XSLT, XQuery, XPath) used to implement the code in this containerint
int
getLineNumber
(int locationId) Get the line number within the document or module containing a particular locationGet the LocationProvider allowing location identifiers to be resolved.getSystemId
(int locationId) Get the URI of the document or module containing a particular locationboolean
replaceSubExpression
(Expression original, Expression replacement) Replace one subexpression by a replacement subexpression
-
Constructor Details
-
TemporaryContainer
-
-
Method Details
-
getExecutable
Description copied from interface:Container
Get the Executable (representing a complete stylesheet or query) of which this Container forms part- Specified by:
getExecutable
in interfaceContainer
-
getLocationProvider
Description copied from interface:Container
Get the LocationProvider allowing location identifiers to be resolved.- Specified by:
getLocationProvider
in interfaceContainer
-
getPublicId
- Specified by:
getPublicId
in interfaceSourceLocator
-
getSystemId
- Specified by:
getSystemId
in interfaceSourceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceSourceLocator
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceSourceLocator
-
getSystemId
Description copied from interface:LocationProvider
Get the URI of the document or module containing a particular location- Specified by:
getSystemId
in 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(int locationId) Description copied from interface:LocationProvider
Get the line number within the document or module containing a particular location- Specified by:
getLineNumber
in interfaceLocationProvider
- Parameters:
locationId
- identifier of the location in question (as passed down the Receiver pipeline)- Returns:
- the line number within the document or module.
-
getHostLanguage
public int getHostLanguage()Get the host language (XSLT, XQuery, XPath) used to implement the code in this container- Specified by:
getHostLanguage
in interfaceContainer
- Returns:
- typically
Configuration.XSLT
orConfiguration.XQUERY
-
replaceSubExpression
Replace one subexpression by a replacement subexpression- Specified by:
replaceSubExpression
in interfaceContainer
- Parameters:
original
- the original subexpressionreplacement
- the replacement subexpression- Returns:
- true if the original subexpression is found
-