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)
TransitionisLegal in interface Transitionpublic State apply(State state)
Transitionapply in interface Transitionpublic State apply(State state, double scoreDelta)
Transitionapply in interface Transition