java.io.Serializable
, javax.xml.transform.SourceLocator
, LocationProvider
, SaxonLocator
, EvaluableItem
, SequenceIterable
, TailCallReturner
, InstructionInfo
, org.xml.sax.Locator
public class TraceExpression extends TraceWrapper implements InstructionInfo
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
Constructor | Description |
---|---|
TraceExpression(Expression child) |
Create a trace expression that traces execution of a given child expression
|
Modifier and Type | Method | Description |
---|---|---|
int |
getColumnNumber() |
Get the column number identifying the position of the instruction.
|
int |
getColumnNumber(long locationId) |
Get the column number within the document or module containing a particular location
|
int |
getConstructType() |
Get the construct type.
|
InstructionInfo |
getInstructionInfo() |
Get the InstructionInfo details about the construct.
|
int |
getLineNumber() |
Get the line number of the instruction within its module
|
int |
getLineNumber(long locationId) |
Get the line number of the expression being
traced.
|
NamespaceResolver |
getNamespaceResolver() |
Get the namespace resolver to supply the namespace context of the instruction
that is being traced
|
StructuredQName |
getObjectName() |
Get a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
java.util.Iterator |
getProperties() |
Get an iterator over all the properties available.
|
java.lang.Object |
getProperty(java.lang.String name) |
Get a named property of the instruction/expression
|
java.lang.String |
getSystemId() |
Get the URI of the module containing the instruction
|
java.lang.String |
getSystemId(long locationId) |
Get the system identifier (that is the base URI) of the static context of the expression being
traced.
|
void |
setColumnNumber(int column) |
Set the column number of the expression being traced
|
void |
setConstructType(int type) |
Set the type of construct.
|
void |
setLineNumber(int line) |
Set the line number of the expression being traced
|
void |
setNamespaceResolver(NamespaceResolver resolver) |
Set the namespace context for the instruction being traced.
|
void |
setObjectName(StructuredQName qName) |
Set a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
void |
setProperty(java.lang.String name,
java.lang.Object value) |
Set a named property of the instruction/expression
|
void |
setSystemId(java.lang.String systemId) |
Set the URI of the module containing the instruction
|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, findParentOf, getContainer, getExecutable, getHostLanguage, getIntrinsicDependencies, getLocationId, getLocationProvider, getPublicId, getSlotsUsed, getSpecialProperties, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toString, typeError
assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promoteInst
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeDependencies, copy, createsNewNodes, evaluateItem, explain, getCardinality, getDependencies, getInstructionNameCode, getItemType, iterate, iterateSubExpressions, optimize, processLeavingTail, promote, replaceSubExpression, simplify, typeCheck
public TraceExpression(Expression child)
child
- the expression to be traced. This will be available to the TraceListener
as the value of the "expression" property of the InstructionInfo.public void setLineNumber(int line)
line
- public void setColumnNumber(int column)
column
- public void setConstructType(int type)
Location
public int getConstructType()
Location
getConstructType
in interface InstructionInfo
getConstructType
in class Instruction
Location
public void setNamespaceResolver(NamespaceResolver resolver)
public NamespaceResolver getNamespaceResolver()
public void setSystemId(java.lang.String systemId)
systemId
- the module's URIpublic java.lang.String getSystemId()
getSystemId
in interface InstructionInfo
getSystemId
in interface org.xml.sax.Locator
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in class Expression
public int getLineNumber()
getLineNumber
in interface InstructionInfo
getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in class Expression
public void setObjectName(StructuredQName qName)
public StructuredQName getObjectName()
getObjectName
in interface InstructionInfo
getObjectName
in class Expression
public void setProperty(java.lang.String name, java.lang.Object value)
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface InstructionInfo
getProperty
in class Expression
name
- The name of the required propertypublic java.util.Iterator getProperties()
getProperties
in interface InstructionInfo
getProperties
in class Expression
public int getColumnNumber()
getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in class Expression
public InstructionInfo getInstructionInfo()
getInstructionInfo
in class TraceWrapper
public java.lang.String getSystemId(long locationId)
LocationProvider
interface.getSystemId
in interface LocationProvider
getSystemId
in class Expression
locationId
- not usedpublic int getLineNumber(long locationId)
LocationProvider
interface.getLineNumber
in interface LocationProvider
getLineNumber
in class Expression
locationId
- not usedpublic int getColumnNumber(long locationId)
LocationProvider
getColumnNumber
in interface LocationProvider
getColumnNumber
in class Expression
locationId
- identifier of the location in question (as passed down the Receiver pipeline)