oops; need method: add getChildren() method to Tree.

This commit is contained in:
Terence Parr 2013-09-10 17:37:20 -07:00
parent 00fa2c7617
commit cbd6e17925
1 changed files with 5 additions and 0 deletions

View File

@ -193,6 +193,11 @@ public class ParserRuleContext extends RuleContext {
return null;
}
@Override
public List<? extends ParseTree> getChildren() {
return children;
}
public TerminalNode getToken(int ttype, int i) {
if ( children==null || i < 0 || i >= children.size() ) {
return null;