public void initial()

in src/main/java/com/ql/util/express/parse/NodeType.java [50:71]


    public void initial() {
        try {
            int index = this.defineStr.indexOf(":", 1);
            String[][] properties = splitProperties(this.defineStr.substring(index));
            for (String[] tempList : properties) {
                if ("type".equalsIgnoreCase(tempList[0])) {
                    this.setKind(NodeTypeKind.valueOf(tempList[1]));
                } else if ("real".equalsIgnoreCase(tempList[0])) {
                    this.realNodeType = manager.findNodeType(tempList[1]);
                } else if ("factory".equalsIgnoreCase(tempList[0])) {
                    this.instructionFactory = tempList[1];
                } else if ("define".equalsIgnoreCase(tempList[0])) {
                    this.qlPatternNode = QLPattern.createPattern(this.manager, this.name, tempList[1]);
                } else {
                    throw new RuntimeException(
                        "不能识别\"" + this.name + "\"的属性类型:" + tempList[0] + " 定义:" + this.defineStr);
                }
            }
        } catch (Exception e) {
            throw new RuntimeException("节点类型\"" + this.name + "\"初始化失败,定义:" + this.defineStr, e);
        }
    }