jag
Class Main.Jag

java.lang.Object
  extended by jag.Main.Jag
Enclosing class:
Main

protected static class Main.Jag
extends Object

manages information about one jag.


Field Summary
protected  ArrayList actions
          last entry is current action number.
protected  String id
          (unique) root class name.
protected  ArrayList subs
          last entry is current subtree pattern.
protected  ArrayList vars
          last entry is true if current pattern is variable.
 
Constructor Summary
Main.Jag(String id)
           
 
Method Summary
 Object action()
          current action number.
 Object get(int n)
          entry from current subtree pattern.
 String id()
          root class name.
 void match(int action, ArrayList sub)
          precedes next action.
 int size()
          current subtree pattern length.
 String toString()
          initialize rules table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected final String id
(unique) root class name.


actions

protected ArrayList actions
last entry is current action number.


subs

protected ArrayList subs
last entry is current subtree pattern.


vars

protected ArrayList vars
last entry is true if current pattern is variable.

Constructor Detail

Main.Jag

public Main.Jag(String id)
Method Detail

id

public String id()
root class name.


match

public void match(int action,
                  ArrayList sub)
precedes next action.

Parameters:
action - index.
sub - subtree pattern for next action.

action

public Object action()
current action number.


size

public int size()
current subtree pattern length.


get

public Object get(int n)
entry from current subtree pattern.


toString

public String toString()
initialize rules table.

Overrides:
toString in class Object