本文整理了Java中org.stringtemplate.v4.STGroup.rawGetDictionary()
方法的一些代码示例,展示了STGroup.rawGetDictionary()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。STGroup.rawGetDictionary()
方法的具体详情如下:
包路径:org.stringtemplate.v4.STGroup
类名称:STGroup
方法名:rawGetDictionary
暂无
代码示例来源:origin: org.antlr/ST4
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: antlr/stringtemplate4
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: org.antlr/stringtemplate
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: jsevellec/cassandra-unit
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: antlr/antlr3
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: io.virtdata/virtdata-lib-realer
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: apache/servicemix-bundles
public Object getDictionary(STGroup g, String name) {
if ( g.isDictionary(name) ) {
return g.rawGetDictionary(name);
}
if ( g.imports!=null ) {
for (STGroup sup : g.imports) {
Object o = getDictionary(sup, name);
if ( o!=null ) return o;
}
}
return null;
}
代码示例来源:origin: com.tunnelvisionlabs/runtime-testsuite
protected void generateCodeForFoldersInIndex(STGroup targetGroup, String rootFolder) {
STGroup index = new STGroupFile(rootFolder+"/Index.stg");
index.load(); // make sure the index group is loaded since we call rawGetDictionary
Map<String, Object> folders = index.rawGetDictionary("TestFolders");
if (folders != null) {
for (String key : folders.keySet()) {
final String testdir = rootFolder + "/" + key;
STGroup testIndex = new STGroupFile(testdir + "/Index.stg");
testIndex.load();
Map<String, Object> templateNames = testIndex.rawGetDictionary("TestTemplates");
if ( templateNames != null && !templateNames.isEmpty() ) {
final ArrayList<String> sortedTemplateNames = new ArrayList<String>(templateNames.keySet());
Collections.sort(sortedTemplateNames);
generateTestFile(testIndex, targetGroup,
testdir,
sortedTemplateNames);
}
}
}
}
代码示例来源:origin: com.tunnelvisionlabs/runtime-testsuite
@Override
public Object getProperty(Interpreter interp, ST self, Object o, Object property, String propertyName) throws STNoSuchPropertyException {
STGroup group = (STGroup)o;
if (group.isDictionary(propertyName)) {
return group.rawGetDictionary(propertyName);
}
ST template = group.getInstanceOf(propertyName);
if (template != null) {
return template;
}
if ("name".equalsIgnoreCase(propertyName)) {
return group.getName();
}
for (STGroup importedGroup : group.getImportedGroups()) {
Object result = getProperty(interp, self, importedGroup, property, propertyName);
if (result != null) {
return result;
}
}
return null;
}
代码示例来源:origin: com.tunnelvisionlabs/runtime-testsuite
index.rawGetDictionary("Options"),
testName,
templates);
代码示例来源:origin: jsevellec/cassandra-unit
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: org.antlr/ST4
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: antlr/antlr3
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: io.virtdata/virtdata-lib-realer
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: org.antlr/stringtemplate
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: antlr/stringtemplate4
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
代码示例来源:origin: apache/servicemix-bundles
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) {
group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
内容来源于网络,如有侵权,请联系作者删除!