|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.umlv.tatoo.runtime.parser.Action<T,P,V>
fr.umlv.tatoo.runtime.parser.VersionedAction<T,P,V>
T - type of terminal.P - type of productions.V - type of versions.public class VersionedAction<T,P,V>
Action that behaves differently depending of the version of the grammar. This class acts as a composite of versioned actions.
| Constructor Summary | |
|---|---|
VersionedAction(Map<V,? extends Action<T,P,V>> actionMap)
Initializes the action with a map of versioned actions. |
|
| Method Summary | ||
|---|---|---|
|
doPerform(Parser<T,N,P,V> parser,
T terminal)
Performs necessary computations required by the action. |
|
boolean |
isError(V version)
Indicates if the action is an error. |
|
| Methods inherited from class fr.umlv.tatoo.runtime.parser.Action |
|---|
isShift |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VersionedAction(Map<V,? extends Action<T,P,V>> actionMap)
actionMap - the map of versioned actions.| Method Detail |
|---|
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 boolean isError(V version)
Action
isError in class Action<T,P,V>version - version of the action to consider, see VersionedAction.
true if the action is an errror.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||