fr.umlv.tatoo.runtime.parser
Class ErrorAction<T,P,V>
java.lang.Object
fr.umlv.tatoo.runtime.parser.Action<T,P,V>
fr.umlv.tatoo.runtime.parser.ErrorAction<T,P,V>
public class ErrorAction<T,P,V>
- extends Action<T,P,V>
| Methods inherited from class fr.umlv.tatoo.runtime.parser.Action |
isShift |
ErrorAction
public ErrorAction(String message)
doPerform
public <N> ActionReturn doPerform(Parser<T,N,P,V> parser,
T terminal)
- Description copied from class:
Action
- Performs necessary computations required by the action.
- Specified by:
doPerform in class Action<T,P,V>
- Type Parameters:
N - type of non-terminals.- Parameters:
parser - the parser object.terminal - terminal on which the shift is performed.
- Returns:
- NEXT if action consumed terminal, and KEEP else.
isError
public boolean isError(V version)
- Description copied from class:
Action
- Indicates if the action is an error.
- Parameters:
version - version of the action to consider, see VersionedAction.
- Returns:
true if the action is an errror.
toString
public String toString()
- Overrides:
toString in class Object
getMessage
protected String getMessage()
- Returns the error action message.
- Returns:
- the error action message.