eval
Class product
java.lang.Object
|
+--eval.product
- Direct Known Subclasses:
- sum
- public class product
- extends java.lang.Object
- implements oops.parser.Goal
Goal class for the product rule.
- 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 char |
op
|
protected java.lang.Number |
result
|
Method Summary |
java.lang.Object |
reduce()
reduce method. |
void |
shift(oops.parser.Goal sender,
java.lang.Object value)
shift method stores the value of the subtree |
void |
shift(oops.parser.Lit sender,
java.lang.Object value)
shift method stores the value of the actually recognized Lit |
void |
shift(oops.parser.Token token,
java.lang.Object value)
shift method does nothing. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
op
protected char op
result
protected java.lang.Number result
product
public product()
shift
public void shift(oops.parser.Lit sender,
java.lang.Object value)
- shift method stores the value of the actually recognized Lit
- Specified by:
- shift in interface oops.parser.Goal
shift
public void shift(oops.parser.Goal sender,
java.lang.Object value)
- shift method stores the value of the subtree
- Specified by:
- shift in interface oops.parser.Goal
shift
public void shift(oops.parser.Token token,
java.lang.Object value)
- shift method does nothing.
- Specified by:
- shift in interface oops.parser.Goal
reduce
public java.lang.Object reduce()
- reduce method.
- Specified by:
- reduce in interface oops.parser.Goal
- Returns:
- the stored subtree