|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.instruction.AbstractInstruction
Abstract base class for all nodes in an STX transformation sheet.
Actually nodes will be represented similar to tags. For an element
from the transformation sheet two objects (derived from
AbstractInstruction
) will be created: the first to be
processed at the beginning of the element, the second to be processed
at the end (see NodeBase
).
Field Summary | |
int |
colNo
The column number of this instruction in the transformation sheet. |
int |
lineNo
The line number of this instruction in the transformation sheet. |
AbstractInstruction |
next
The next instruction in the chain. |
Constructor Summary | |
AbstractInstruction()
|
Method Summary | |
abstract NodeBase |
getNode()
|
abstract short |
process(Context context)
The method that does the actual processing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public AbstractInstruction next
public int lineNo
public int colNo
Constructor Detail |
public AbstractInstruction()
Method Detail |
public abstract NodeBase getNode()
public abstract short process(Context context) throws SAXException
context
- the current context
Constants.PR_CONTINUE
,
when the processing should continue with the next
node; otherwise when the processing should be
suspended due to an stx:process-xxx
instruction. This in turn means that only the implementations
for these stx:process-xxx
instructions
must return a value other than PR_CONTINUE
.
(Exception from the rule: non-recoverable errors)
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |