fr.umlv.tatoo.runtime.parser
Class ReduceAction<T,P>

java.lang.Object
  extended by fr.umlv.tatoo.runtime.parser.ReduceAction<T,P>
Type Parameters:
T - type of terminals.
P - type of productions.
All Implemented Interfaces:
Action<T,P>

public class ReduceAction<T,P>
extends Object
implements Action<T,P>

Author:
julien

Constructor Summary
ReduceAction(P production, int rightSize, int[] gotos)
           
 
Method Summary
 int[] getGotos()
           
 P getProduction()
           
 boolean isAccept()
           
 boolean isError()
           
 boolean isShift()
           
 void perform(ParserListener<? super T,? super P> p, IntArrayList states, T t)
          invoke the method require by the reduce and update value stack
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReduceAction

public ReduceAction(P production,
                    int rightSize,
                    int[] gotos)
Method Detail

getGotos

public int[] getGotos()

getProduction

public P getProduction()

perform

public void perform(ParserListener<? super T,? super P> p,
                    IntArrayList states,
                    T t)
invoke the method require by the reduce and update value stack

Specified by:
perform in interface Action<T,P>

isShift

public boolean isShift()
Specified by:
isShift in interface Action<T,P>

isAccept

public boolean isAccept()
Specified by:
isAccept in interface Action<T,P>

isError

public boolean isError()
Specified by:
isError in interface Action<T,P>

toString

public String toString()
Overrides:
toString in class Object