public class TraceExpression extends TraceWrapper implements InstructionInfo
childlocationId, staticPropertiesEVALUATE_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, typeCheckappendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promoteInstadoptChildExpression, checkPermittedContents, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getExecutable, getHostLanguage, getIntrinsicDependencies, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic 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 ComputedExpressionLocationpublic void setNamespaceResolver(NamespaceResolver resolver)
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver in interface InstructionInfopublic void setSystemId(java.lang.String systemId)
systemId - the module's URIpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface InstructionInfogetSystemId in interface org.xml.sax.LocatorgetSystemId in class ComputedExpressionpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface InstructionInfogetLineNumber in interface org.xml.sax.LocatorgetLineNumber in class ComputedExpressionpublic void setObjectNameCode(int nameCode)
public int getObjectNameCode()
getObjectNameCode in interface InstructionInfopublic void setProperty(java.lang.String name,
java.lang.Object value)
public java.lang.Object getProperty(java.lang.String name)
getProperty in interface InstructionInfoname - The name of the required propertypublic java.util.Iterator getProperties()
getProperties in interface InstructionInfopublic int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface org.xml.sax.LocatorgetColumnNumber in class ComputedExpressionpublic InstructionInfo getInstructionInfo()
getInstructionInfo in interface InstructionInfoProvidergetInstructionInfo in class Instructionpublic java.lang.String getSystemId(int locationId)
LocationProvider interface.getSystemId in interface LocationProviderlocationId - not usedpublic int getLineNumber(int locationId)
LocationProvider interface.getLineNumber in interface LocationProviderlocationId - not used