Java 类org.antlr.v4.runtime.RuntimeMetaData 实例源码

项目:codebuff    文件:Target.java   
public STGroup getTemplates() {
    if (templates == null) {
        String version = getVersion();
        if ( version==null ||
             !RuntimeMetaData.getMajorMinorVersion(version).equals(RuntimeMetaData.getMajorMinorVersion(Tool.VERSION)))
        {
            gen.tool.errMgr.toolError(ErrorType.INCOMPATIBLE_TOOL_AND_TEMPLATES, version, Tool.VERSION, language);
        }
        templates = loadTemplates();
    }

    return templates;
}