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; }
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; }
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; }
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; }
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; }
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; }
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; }
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; }
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); } } } }
@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; }
index.rawGetDictionary("Options"), testName, templates);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);
if ( group.rawGetDictionary((ID7!=null?ID7.getText():null))!=null ) { group.errMgr.compileTimeError(ErrorType.MAP_REDEFINITION, null, ID7);