public class TraceExpression extends TraceWrapper implements InstructionInfo
child
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
TraceExpression(Expression child)
Create a trace expression that traces execution of a given child expression
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Get the column number identifying the position of the instruction.
|
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(int 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
|
int |
getObjectNameCode()
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(int 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 |
setObjectNameCode(int nameCode)
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
|
computeDependencies, createsNewNodes, display, evaluateItem, getCardinality, getDependencies, getInstructionNameCode, getItemType, iterate, iterateSubExpressions, optimize, processLeavingTail, promote, replaceSubExpression, simplify, typeCheck
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promoteInst
adoptChildExpression, checkPermittedContents, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getExecutable, getHostLanguage, getIntrinsicDependencies, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
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 ComputedExpression
Location
public void setNamespaceResolver(NamespaceResolver resolver)
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface InstructionInfo
public void setSystemId(java.lang.String systemId)
systemId
- the module's URIpublic java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface InstructionInfo
getSystemId
in interface org.xml.sax.Locator
getSystemId
in class ComputedExpression
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface InstructionInfo
getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in class ComputedExpression
public void setObjectNameCode(int nameCode)
public int getObjectNameCode()
getObjectNameCode
in interface InstructionInfo
public void setProperty(java.lang.String name, java.lang.Object value)
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface InstructionInfo
name
- The name of the required propertypublic java.util.Iterator getProperties()
getProperties
in interface InstructionInfo
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in class ComputedExpression
public InstructionInfo getInstructionInfo()
getInstructionInfo
in interface InstructionInfoProvider
getInstructionInfo
in class Instruction
public java.lang.String getSystemId(int locationId)
LocationProvider
interface.getSystemId
in interface LocationProvider
locationId
- not usedpublic int getLineNumber(int locationId)
LocationProvider
interface.getLineNumber
in interface LocationProvider
locationId
- not used