net.sf.joost.instruction
Class ProcessBase.ProcessEnd

java.lang.Object
  extended by net.sf.joost.instruction.AbstractInstruction
      extended by net.sf.joost.instruction.ProcessBase.ProcessEnd
All Implemented Interfaces:
Cloneable
Enclosing class:
ProcessBase

private class ProcessBase.ProcessEnd
extends AbstractInstruction

Instruction the clears the parameter stack


Field Summary
private  ProcessBase node
           
 
Fields inherited from class net.sf.joost.instruction.AbstractInstruction
colNo, lineNo, next
 
Constructor Summary
ProcessBase.ProcessEnd(ProcessBase node)
           
 
Method Summary
 NodeBase getNode()
           
protected  void onDeepCopy(AbstractInstruction copy, HashMap copies)
          Callback that will be called when a clone of this instance has been created.
 short process(Context ctx)
          The method that does the actual processing.
 
Methods inherited from class net.sf.joost.instruction.AbstractInstruction
deepCopy, deepHashtableCopy, deepTemplateArrayCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

private ProcessBase node
Constructor Detail

ProcessBase.ProcessEnd

public ProcessBase.ProcessEnd(ProcessBase node)
Method Detail

getNode

public NodeBase getNode()
Specified by:
getNode in class AbstractInstruction
Returns:
the node this instruction belongs to

process

public short process(Context ctx)
Description copied from class: AbstractInstruction
The method that does the actual processing. This method will be called while traversing the list of nodes.

Specified by:
process in class AbstractInstruction
Parameters:
ctx - the current context
Returns:
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)

onDeepCopy

protected void onDeepCopy(AbstractInstruction copy,
                          HashMap copies)
Description copied from class: AbstractInstruction
Callback that will be called when a clone of this instance has been created. To be overridden in subclasses.

Overrides:
onDeepCopy in class AbstractInstruction
Parameters:
copy - the created clones
copies - the map of already copied objects