UserAgentTreeFlattener.java 文件源码

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

项目:yauaa 作者:
private String inform(ParseTree stateCtx, ParseTree ctx, String name, String value, boolean fakeChild) {
    State myState = new State(stateCtx, name);

    if (!fakeChild) {
        state.put(stateCtx, myState);
    }

    PathType childType;
    switch (name) {
        case "comments":
            childType = PathType.COMMENT;
            break;
        case "version":
            childType = PathType.VERSION;
            break;
        default:
            childType = PathType.CHILD;
    }

    String path = myState.calculatePath(childType, fakeChild);
    analyzer.inform(path, value, ctx);
    return path;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号