forked from jasder/antlr
add convenience method
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9558]
This commit is contained in:
parent
c32b703555
commit
c3630843d2
|
@ -118,6 +118,13 @@ public class ATN {
|
|||
return s.decision;
|
||||
}
|
||||
|
||||
public DecisionState getDecisionState(int decision) {
|
||||
if ( decisionToState.size()>0 ) {
|
||||
return decisionToState.get(decision);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getNumberOfDecisions() {
|
||||
return decisionToState.size();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue