public class IdleTransition extends java.lang.Object implements Transition
| Constructor and Description |
|---|
IdleTransition() |
| Modifier and Type | Method and Description |
|---|---|
State |
apply(State state)
Do nothing
|
State |
apply(State state,
double scoreDelta)
Do nothing
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isLegal(State state,
java.util.List<ParserConstraint> constraints)
Legal only if the state is already finished
|
java.lang.String |
toString() |
public boolean isLegal(State state, java.util.List<ParserConstraint> constraints)
isLegal in interface Transitionpublic State apply(State state)
apply in interface Transitionpublic State apply(State state, double scoreDelta)
apply in interface Transitionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object