|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.runtime.parser.Action<T,P,V> fr.umlv.tatoo.runtime.parser.ReduceAction<T,P,V>
T
- type of terminals.P
- type of productions.V
- type of versions.public class ReduceAction<T,P,V>
Reduce action class.
Constructor Summary | |
---|---|
ReduceAction(P production,
int rightSize,
int[] gotos)
Constructs a reduce action. |
Method Summary | ||
---|---|---|
|
doPerform(Parser<T,N,P,V> parser,
T terminal)
Performs necessary computations required by the action. |
|
P |
getProduction()
Returns the production on which the reduce is performed. |
|
int |
getRightSize()
Returns the size of the right hand size of the production associated with this reduce action. |
|
String |
toString()
|
Methods inherited from class fr.umlv.tatoo.runtime.parser.Action |
---|
isError, isShift |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReduceAction(P production, int rightSize, int[] gotos)
production
- production associated with this reduce action.rightSize
- size of the production right hand side.gotos
- goto array used for goto actions after reduction.Method Detail |
---|
public P getProduction()
public int getRightSize()
public <N> ActionReturn doPerform(Parser<T,N,P,V> parser, T terminal)
Action
doPerform
in class Action<T,P,V>
N
- type of non-terminals.parser
- the parser object.terminal
- terminal on which the shift is performed.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |