|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.joost.instruction.AbstractInstruction
public abstract class 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 | |
---|---|
AbstractInstruction |
deepCopy(HashMap copies)
Creates a deep copy of this instruction |
static Hashtable |
deepHashtableCopy(Hashtable hashtable,
HashMap copies)
Create a deep copy of a Hashtable that contains
AbstractInstruction instances as values |
static TemplateFactory.Instance[] |
deepTemplateArrayCopy(TemplateFactory.Instance[] templates,
HashMap copies)
Create a deep copy of an array of STX template instances. |
abstract NodeBase |
getNode()
|
protected void |
onDeepCopy(AbstractInstruction copy,
HashMap copies)
Callback that will be called when a clone of this instance has been created. |
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
public final AbstractInstruction deepCopy(HashMap copies)
copies
- the map of already copied objects
protected void onDeepCopy(AbstractInstruction copy, HashMap copies)
copy
- the created clonescopies
- the map of already copied objectspublic static final Hashtable deepHashtableCopy(Hashtable hashtable, HashMap copies)
Hashtable
that contains
AbstractInstruction
instances as values
hashtable
- the Hashtable to be copiedcopies
- the map of already copied objects
public static final TemplateFactory.Instance[] deepTemplateArrayCopy(TemplateFactory.Instance[] templates, HashMap copies)
templates
- the array to be copiedcopies
- the map of already copied objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |