net.sf.saxon.expr

Class ExpressionParser.TemporaryContainer

Enclosing Class:
ExpressionParser
Implemented Interfaces:
Container, Serializable, SourceLocator, LocationProvider

protected static class ExpressionParser.TemporaryContainer
extends java.lang.Object
implements Container, LocationProvider, Serializable

Constructor Summary

TemporaryContainer(LocationMap map, int locationId)

Method Summary

int
getColumnNumber()
Executable
getExecutable()
int
getHostLanguage()
Get the host language (XSLT, XQuery, XPath) used to implement the code in this container
int
getLineNumber()
int
getLineNumber(long locationId)
Get the line number within the document or module containing a particular location
LocationProvider
getLocationProvider()
String
getPublicId()
String
getSystemId()
String
getSystemId(long locationId)
Get the URI of the document or module containing a particular location
boolean
replaceSubExpression(Expression original, Expression replacement)
Replace one subexpression by a replacement subexpression

Constructor Details

TemporaryContainer

public TemporaryContainer(LocationMap map,
                          int locationId)

Method Details

getColumnNumber

public int getColumnNumber()

getExecutable

public Executable getExecutable()
Specified by:
getExecutable in interface Container

getHostLanguage

public int getHostLanguage()
Get the host language (XSLT, XQuery, XPath) used to implement the code in this container
Specified by:
getHostLanguage in interface Container

getLineNumber

public int getLineNumber()

getLineNumber

public int getLineNumber(long locationId)
Get the line number within the document or module containing a particular location
Specified by:
getLineNumber in interface LocationProvider
Parameters:
locationId - identifier of the location in question (as passed down the Receiver pipeline)
Returns:
the line number within the document or module.

getLocationProvider

public LocationProvider getLocationProvider()
Specified by:
getLocationProvider in interface Container

getPublicId

public String getPublicId()

getSystemId

public String getSystemId()

getSystemId

public String getSystemId(long locationId)
Get the URI of the document or module containing a particular location
Specified by:
getSystemId in interface LocationProvider
Parameters:
locationId - identifier of the location in question (as passed down the Receiver pipeline)
Returns:
the URI of the document or module.

replaceSubExpression

public boolean replaceSubExpression(Expression original,
                                    Expression replacement)
Replace one subexpression by a replacement subexpression
Specified by:
replaceSubExpression in interface Container
Parameters:
original - the original subexpression
replacement - the replacement subexpression
Returns:
true if the original subexpression is found