public class IdleTransition extends 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(Object o) |
int |
hashCode() |
boolean |
isLegal(State state,
List<ParserConstraint> constraints)
Legal only if the state is already finished
|
String |
toString() |
public boolean isLegal(State state, List<ParserConstraint> constraints)
isLegal
in interface Transition
public State apply(State state)
apply
in interface Transition
public State apply(State state, double scoreDelta)
apply
in interface Transition