TypeStringCreatingVisitor.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:Cetus 作者:
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;
   }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号