tree
Class expression

java.lang.Object
  |
  +--oops.parser.GoalAdapter
        |
        +--tree.expression

public class expression
extends oops.parser.GoalAdapter

Goal class for the expression rule. collect lines: [{ [ sum ] ';' }] in a Vector.

Author:
Bernd Kuehl, Bernd.Kuehl@informatik.uni-osnabrueck.de, Axel-Tobias Schreiner, axel@informatik.uni-osnabrueck.de, Jan Kraneis, jkraneis@informatik.uni-osnabrueck.de

Field Summary
protected  java.util.Vector lines
          stores a tree for each sum.
 
Fields inherited from class oops.parser.GoalAdapter
result
 
Constructor Summary
expression()
           
 
Method Summary
 java.lang.Object reduce()
          concludes rule recognition.
 void shift(oops.parser.Goal sender, java.lang.Object node)
          presents result of reduction.
 
Methods inherited from class oops.parser.GoalAdapter
shift, shift
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

protected java.util.Vector lines
stores a tree for each sum.
Constructor Detail

expression

public expression()
Method Detail

shift

public void shift(oops.parser.Goal sender,
                  java.lang.Object node)
presents result of reduction.
Overrides:
shift in class oops.parser.GoalAdapter
Parameters:
sender - just received reduce().
node - was created by sender.

reduce

public java.lang.Object reduce()
concludes rule recognition.
Overrides:
reduce in class oops.parser.GoalAdapter
Returns:
Vector of sum trees.