public List<String> visitChildren(RuleNode node) {
List<String> result = defaultResult();
List<String> childResult;
ParseTree child;
int n = node.getChildCount();
for (int i = 0; i < n; i++) {
if (!shouldVisitNextChild(node, result)) {
break;
}
child = node.getChild(i);
childResult = child.accept(this);
if (childResult != null) {
if (result != null) {
result.addAll(childResult);
} else {
result = childResult;
}
}
}
return result;
}
TypeStringCreatingVisitor.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:Cetus
作者:
评论列表
文章目录