|
|||||||
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.instruct.Instruction net.sf.saxon.instruct.TraceWrapper net.sf.saxon.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, ITERATE_METHOD, PROCESS_METHOD |
Constructor Summary | |
---|---|
TraceExpression(Expression child)
Create a trace expression that traces execution of a given child expression |
Method Summary | |
---|---|
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(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(NamePool pool)
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.instruct.TraceWrapper |
---|
computeDependencies, copy, createsNewNodes, evaluateItem, explain, getCardinality, getDependencies, getInstructionNameCode, getItemType, iterate, iterateSubExpressions, optimize, processLeavingTail, promote, replaceSubExpression, simplify, typeCheck |
Methods inherited from class net.sf.saxon.instruct.Instruction |
---|
computeCardinality, computeSpecialProperties, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process |
Methods inherited from class java.lang.Object |
---|
equals, 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
Location
public void setNamespaceResolver(NamespaceResolver resolver)
public NamespaceResolver getNamespaceResolver()
getNamespaceResolver
in interface InstructionInfo
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(NamePool pool)
getObjectName
in interface InstructionInfo
pool
- public void setProperty(String name, Object value)
public Object getProperty(String name)
getProperty
in interface InstructionInfo
name
- The name of the required property
public Iterator getProperties()
getProperties
in interface InstructionInfo
public int getColumnNumber()
getColumnNumber
in interface SourceLocator
getColumnNumber
in interface Locator
getColumnNumber
in class Expression
public InstructionInfo getInstructionInfo()
getInstructionInfo
in interface InstructionInfoProvider
getInstructionInfo
in class Instruction
public String getSystemId(long locationId)
LocationProvider
interface.
getSystemId
in interface LocationProvider
locationId
- not used
public int getLineNumber(long locationId)
LocationProvider
interface.
getLineNumber
in interface LocationProvider
locationId
- not used
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |