protected class SPTBase.FSMInstance extends Object implements Comparable<SPTBase.FSMInstance>
Modifier and Type | Field and Description |
---|---|
int |
annotationIndex
The current annotation this instance will be applied on
|
protected Map<String,cern.colt.list.IntArrayList> |
bindings
Store the currently bound annotations.
|
int |
rule
If the instance is in a final state (only applicable for FSMInstances
stored inside the
SPTBase.acceptingInstances list) this value
stores the rule to be applied. |
int |
state
The current state for this instance.
|
Constructor and Description |
---|
FSMInstance(int annotationIndex,
int state,
Map<String,cern.colt.list.IntArrayList> bindings) |
Modifier and Type | Method and Description |
---|---|
void |
bindAnnotations(int[] aStep)
Adds all input annotations to every annotation set stored in the binding stack.
|
SPTBase.FSMInstance |
clone() |
int |
compareTo(SPTBase.FSMInstance other) |
void |
popBindingSet(String label)
Pops annotation set from the binding stack and puts it in the hash map
bindings.
|
void |
pushNewEmptyBindingSet()
Pushes a new empty annotation set in the binding stack.
|
public int annotationIndex
public int state
public int rule
SPTBase.acceptingInstances
list) this value
stores the rule to be applied.public int compareTo(SPTBase.FSMInstance other)
compareTo
in interface Comparable<SPTBase.FSMInstance>
public SPTBase.FSMInstance clone()
public void pushNewEmptyBindingSet()
public void popBindingSet(String label)
public void bindAnnotations(int[] aStep)