|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.expr.Expression net.sf.saxon.expr.instruct.Instruction net.sf.saxon.expr.instruct.TraceWrapper net.sf.saxon.expr.instruct.TraceExpression
public class TraceExpression
A subclass of TraceWrapper used to trace expressions in XPath and XQuery. Unlike the TraceInstruction class, this class contains all information needed for tracing, rather than referencing a separate InstructionDetails object.
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.Expression |
---|
EVALUATE_METHOD, EVENT_FEED_METHOD, ITEM_FEED_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, PUSH_SELECTION, staticProperties, WATCH_METHOD |
Constructor Summary | |
---|---|
TraceExpression(Expression child)
Create a trace expression that traces execution of a given child expression |
Method Summary | |
---|---|
Expression |
copy()
Copy an expression. |
int |
getColumnNumber()
Get the column number identifying the position of the instruction. |
int |
getColumnNumber(long locationId)
Get the column number within the document, entity, 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. |
Iterator |
getProperties()
Get an iterator over all the properties available. |
Object |
getProperty(String name)
Get a named property of the instruction/expression |
String |
getSystemId()
Get the URI of the module containing the instruction |
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(String name,
Object value)
Set a named property of the instruction/expression |
void |
setSystemId(String systemId)
Set the URI of the module containing the instruction |
Methods inherited from class net.sf.saxon.expr.instruct.TraceWrapper |
---|
checkForUpdatingSubexpressions, computeDependencies, createsNewNodes, evaluateItem, evaluatePendingUpdates, explain, getCardinality, getDependencies, getImplementationMethod, getInstructionNameCode, getItemType, isUpdatingExpression, isVacuousExpression, iterate, iterateSubExpressions, optimize, processLeavingTail, promote, replaceSubExpression, simplify, typeCheck |
Methods inherited from class net.sf.saxon.expr.instruct.Instruction |
---|
assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, dynamicError, evaluateAsString, getExpressionName, getInstructionName, getIteratorFromProcessMethod, getSourceLocator, isXSLT, process, promoteInst |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.xml.sax.Locator |
---|
getPublicId |
Methods inherited from interface javax.xml.transform.SourceLocator |
---|
getPublicId |
Constructor Detail |
---|
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.Method Detail |
---|
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(String systemId)
systemId
- the module's URIpublic String getSystemId()
getSystemId
in interface SourceLocator
getSystemId
in interface InstructionInfo
getSystemId
in interface Locator
getSystemId
in class Expression
public int getLineNumber()
getLineNumber
in interface SourceLocator
getLineNumber
in interface InstructionInfo
getLineNumber
in interface Locator
getLineNumber
in class Expression
public void setObjectName(StructuredQName qName)
public StructuredQName getObjectName()
getObjectName
in interface InstructionInfo
getObjectName
in class Expression
public void setProperty(String name, Object value)
public Object getProperty(String name)
getProperty
in interface InstructionInfo
getProperty
in class Expression
name
- The name of the required property
public Iterator getProperties()
getProperties
in interface InstructionInfo
getProperties
in class Expression
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
getColumnNumber
in class Expression
public InstructionInfo getInstructionInfo()
getInstructionInfo
in class TraceWrapper
public String getSystemId(long locationId)
LocationProvider
interface.
getSystemId
in interface LocationProvider
getSystemId
in class Expression
locationId
- not used
public int getLineNumber(long locationId)
LocationProvider
interface.
getLineNumber
in interface LocationProvider
getLineNumber
in class Expression
locationId
- not used
public 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)
public Expression copy()
TraceWrapper
copy
in class TraceWrapper
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |