PropertyPath.java 文件源码

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

项目:javersion 作者:
public final SubPath propertyOrKey(String string) {
    checkNotNull(string);
    try {
        return newParser(string, true).parseProperty().accept(new PropertyPathBaseVisitor<SubPath>() {

            @Override
            public SubPath visitProperty(PropertyPathParser.PropertyContext ctx) {
                return new Property(PropertyPath.this, ctx.getText());
            }

            @Override
            protected boolean shouldVisitNextChild(RuleNode node, SubPath currentResult) {
                return currentResult == null;
            }

        });
    } catch (SilentParseException e) {
        return new Key(this, string);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号