public class FinalizeTransition extends Object implements Transition
Constructor and Description |
---|
FinalizeTransition(Set<String> rootStates) |
Modifier and Type | Method and Description |
---|---|
State |
apply(State state)
Applies this transition to get a new state.
|
State |
apply(State state,
double scoreDelta)
Applies this transition to get a new state.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isLegal(State state,
List<ParserConstraint> constraints)
Whether or not it is legal to apply this transition to this state.
|
String |
toString() |
public boolean isLegal(State state, List<ParserConstraint> constraints)
Transition
isLegal
in interface Transition
public State apply(State state)
Transition
apply
in interface Transition
public State apply(State state, double scoreDelta)
Transition
apply
in interface Transition