net.sf.joost.stx
Class Processor.Data

java.lang.Object
  extended by net.sf.joost.stx.Processor.Data
Enclosing class:
Processor

public final class Processor.Data
extends Object

Inner class for data which is processing/template specific. Objects of this class will be put on the instance stack Processor.dataStack.


Field Summary
private  long contextPosition
          The context position of the current node (from Context)
 GroupBase currentGroup
          The current group
private  AbstractInstruction instruction
          The next instruction to be executed
private  short lastProcStatus
          Last process status while processing this template.
private  Hashtable localVars
          current table of local variables in template
private  Hashtable passedParams
          passed parameters to template (only for the debugging)
private  PSiblingsFactory.Instance psiblings
          stx:process-siblings instruction (for stx:process-siblings)
private  SAXEvent sibEvent
          current event (for stx:process-siblings)
private  GroupBase targetGroup
          Next group in the processing, contains the visible templates
 TemplateFactory.Instance template
          The last instantiated template
 
Constructor Summary
Processor.Data(Context c)
          Initial constructor for the first element of the data stack.
Processor.Data(Processor.Data data)
          Constructor used when processing a built-in template.
Processor.Data(short lps, TemplateFactory.Instance t, AbstractInstruction i, Hashtable pp, Context c)
          Constructor for "descendant or self" processing
Processor.Data(short lps, TemplateFactory.Instance t, AbstractInstruction i, Hashtable pp, Context c, SAXEvent se)
          Constructor for the initialization of all fields, needed for stx:process-siblings
 
Method Summary
 Hashtable getLocalVars()
          returns the value of localVars
 Hashtable getPassedParams()
          returns the value of passedParams
 GroupBase getTargetGroup()
          returns the value of targetGroup
 String toString()
          just for debugging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lastProcStatus

private short lastProcStatus
Last process status while processing this template. The values used are defined in Constants as "process state values".


template

public TemplateFactory.Instance template
The last instantiated template


instruction

private AbstractInstruction instruction
The next instruction to be executed


currentGroup

public GroupBase currentGroup
The current group


contextPosition

private long contextPosition
The context position of the current node (from Context)


targetGroup

private GroupBase targetGroup
Next group in the processing, contains the visible templates


localVars

private Hashtable localVars
current table of local variables in template


passedParams

private Hashtable passedParams
passed parameters to template (only for the debugging)


psiblings

private PSiblingsFactory.Instance psiblings
stx:process-siblings instruction (for stx:process-siblings)


sibEvent

private SAXEvent sibEvent
current event (for stx:process-siblings)

Constructor Detail

Processor.Data

Processor.Data(short lps,
               TemplateFactory.Instance t,
               AbstractInstruction i,
               Hashtable pp,
               Context c,
               SAXEvent se)
Constructor for the initialization of all fields, needed for stx:process-siblings


Processor.Data

Processor.Data(short lps,
               TemplateFactory.Instance t,
               AbstractInstruction i,
               Hashtable pp,
               Context c)
Constructor for "descendant or self" processing


Processor.Data

Processor.Data(Context c)
Initial constructor for the first element of the data stack.

Parameters:
c - the initial context

Processor.Data

Processor.Data(Processor.Data data)
Constructor used when processing a built-in template.

Parameters:
data - a Processor.Data element that will be copied partially
Method Detail

getPassedParams

public Hashtable getPassedParams()
returns the value of passedParams


getLocalVars

public Hashtable getLocalVars()
returns the value of localVars


getTargetGroup

public GroupBase getTargetGroup()
returns the value of targetGroup


toString

public String toString()
just for debugging

Overrides:
toString in class Object