java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, TailCallReturner, InstructionInfo, org.xml.sax.Locatorpublic 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, typeErrorassembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promoteInstclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeDependencies, copy, createsNewNodes, evaluateItem, explain, getCardinality, getDependencies, getInstructionNameCode, getItemType, iterate, iterateSubExpressions, optimize, processLeavingTail, promote, replaceSubExpression, simplify, typeCheckpublic 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)
Locationpublic int getConstructType()
LocationgetConstructType in interface InstructionInfogetConstructType in class InstructionLocationpublic 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 InstructionInfogetSystemId in interface org.xml.sax.LocatorgetSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in class Expressionpublic int getLineNumber()
getLineNumber in interface InstructionInfogetLineNumber in interface org.xml.sax.LocatorgetLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in class Expressionpublic void setObjectName(StructuredQName qName)
public StructuredQName getObjectName()
getObjectName in interface InstructionInfogetObjectName in class Expressionpublic void setProperty(java.lang.String name,
java.lang.Object value)
public java.lang.Object getProperty(java.lang.String name)
getProperty in interface InstructionInfogetProperty in class Expressionname - The name of the required propertypublic java.util.Iterator getProperties()
getProperties in interface InstructionInfogetProperties in class Expressionpublic int getColumnNumber()
getColumnNumber in interface org.xml.sax.LocatorgetColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in class Expressionpublic InstructionInfo getInstructionInfo()
getInstructionInfo in class TraceWrapperpublic java.lang.String getSystemId(long locationId)
LocationProvider interface.getSystemId in interface LocationProvidergetSystemId in class ExpressionlocationId - not usedpublic int getLineNumber(long locationId)
LocationProvider interface.getLineNumber in interface LocationProvidergetLineNumber in class ExpressionlocationId - not usedpublic int getColumnNumber(long locationId)
LocationProvidergetColumnNumber in interface LocationProvidergetColumnNumber in class ExpressionlocationId - identifier of the location in question (as passed down the Receiver pipeline)