|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.instruct.Instruction
Abstract superclass for all instructions in the compiled stylesheet.
This represents a compiled instruction, and as such, the minumum information is
retained from the original stylesheet.
Note: this class implements SourceLocator.
Field Summary | |
protected Instruction[] |
children
|
Constructor Summary | |
Instruction()
Constructor |
Method Summary | |
protected ParameterSet |
assembleParams(XPathContext context,
WithParam[] actualParams)
Assemble a ParameterSet. |
protected ParameterSet |
assembleTunnelParams(XPathContext context,
WithParam[] actualParams)
Assemble a ParameterSet. |
Instruction[] |
getChildren()
Get the children of this instruction |
int |
getColumnNumber()
|
InstructionDetails |
getInstructionDetails(Controller controller)
Contruct details of an InstructionInfo for use by the TraceListener. |
java.lang.String |
getInstructionName()
|
int |
getLineNumber()
Get the line number of the source stylesheet instruction within its module. |
java.lang.String |
getPublicId()
|
SequenceType |
getResultType()
Get the static type of the value returned by the instruction |
java.lang.String |
getSystemId()
|
java.lang.String |
getSystemId(Executable exec)
Get the system ID of the source stylesheet module containing this instruction. |
void |
process(XPathContext context)
Process the instruction, without returning any tail calls |
protected void |
processChildren(XPathContext context)
Process the children of this instruction, including any tail calls |
protected TailCall |
processChildrenLeavingTail(XPathContext context)
Process the children of this node in the stylesheet, returning any tail call made by the last child instruction |
abstract TailCall |
processLeavingTail(XPathContext context)
ProcessLeavingTail: called to do the real work of this instruction. |
protected void |
recoverableError(java.lang.String message,
Controller controller)
Signal a recoverable error. |
void |
setChildren(Instruction[] children)
Set the children of this instruction |
abstract void |
setInstructionDetails(Controller controller,
NamePool namePool,
InstructionDetails details)
Get the name of the instruction for use in diagnostics |
void |
setSourceLocation(int module,
int lineNumber)
Set the system ID and the line number of this instruction. |
protected javax.xml.transform.TransformerException |
styleError(java.lang.String message,
Controller controller)
Raise a dynamic error |
protected javax.xml.transform.TransformerException |
styleError(javax.xml.transform.TransformerException error,
Controller controller)
Construct an exception with diagnostic information. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Instruction[] children
Constructor Detail |
public Instruction()
Method Detail |
public void setChildren(Instruction[] children)
children
- The instructions that are children of this instructionpublic Instruction[] getChildren()
public void setSourceLocation(int module, int lineNumber)
module
- integer identifying the module in which this instruction occurs,
This is an index into the module array owned by the Executable objectlineNumber
- the line number of this instruction within its modulepublic java.lang.String getSystemId(Executable exec)
exec
- The Executable object that owns the index of modules
public java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.SourceLocator
public java.lang.String getPublicId()
getPublicId
in interface javax.xml.transform.SourceLocator
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
public InstructionDetails getInstructionDetails(Controller controller)
controller
- the Controller for the transformation. This is supplied because
(to save space) the Executable is not reachable from an individual Instruction
public abstract void setInstructionDetails(Controller controller, NamePool namePool, InstructionDetails details)
public java.lang.String getInstructionName()
public SequenceType getResultType()
public abstract TailCall processLeavingTail(XPathContext context) throws javax.xml.transform.TransformerException
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
javax.xml.transform.TransformerException
public void process(XPathContext context) throws javax.xml.transform.TransformerException
context
- The dynamic context, giving access to the current node,
the current variables, etc.
javax.xml.transform.TransformerException
protected void processChildren(XPathContext context) throws javax.xml.transform.TransformerException
context
- The dynamic context for the transformation
javax.xml.transform.TransformerException
- if a dynamic error occursprotected TailCall processChildrenLeavingTail(XPathContext context) throws javax.xml.transform.TransformerException
context
- The dynamic context of the transformation, giving access to the current node,
the current variables, etc.
javax.xml.transform.TransformerException
protected javax.xml.transform.TransformerException styleError(javax.xml.transform.TransformerException error, Controller controller)
error
- The exception containing information about the errorcontroller
- The controller of the transformation
protected javax.xml.transform.TransformerException styleError(java.lang.String message, Controller controller)
message
- An English text error messagecontroller
- The controller of the transformation
protected void recoverableError(java.lang.String message, Controller controller) throws javax.xml.transform.TransformerException
message
- an English-language error messagecontroller
- the controller for the transformation
javax.xml.transform.TransformerException
- - the method throws an exception if the selected
policy is not to recover from recoverable errorsprotected ParameterSet assembleParams(XPathContext context, WithParam[] actualParams) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
protected ParameterSet assembleTunnelParams(XPathContext context, WithParam[] actualParams) throws javax.xml.transform.TransformerException
javax.xml.transform.TransformerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |