public void onChildCompleted(Object result, int cookie, boolean needAttCheck)throws SAXException { switch(cookie) { case 19: { this._schema = ((Schema)result); action0(); $_ngcc_current_state = 1; } break; case 22: { this.classes = ((Classes)result); $_ngcc_current_state = 2; } break; case 20: { this._schema = ((Schema)result); action0(); $_ngcc_current_state = 1; } break; } }
private SchemaOutputResolver createSchemaOutputResolver(Config config, String xmlpath) { File baseDir = new File(xmlpath, config.getBaseDir().getPath()); SchemaOutputResolverImpl schemaOutputResolver = new SchemaOutputResolverImpl (baseDir); for( Schema schema : (List<Schema>)config.getSchema() ) { String namespace = schema.getNamespace(); File location = schema.getLocation(); schemaOutputResolver.addSchemaInfo(namespace,location); } return schemaOutputResolver; }
unexpectedEnterAttribute($__qname); case 0: revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); unexpectedEnterAttribute($__qname);
unexpectedLeaveAttribute($__qname); case 0: revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); unexpectedLeaveAttribute($__qname);
spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); unexpectedEnterElement($__qname); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); case 0: revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); default: unexpectedEnterElement($__qname);
action1(); case 0: revertToParentFromText(this, super._cookie, $value);
case 0: revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); unexpectedLeaveElement($__qname); unexpectedLeaveElement($__qname); default: unexpectedLeaveElement($__qname);
private void checkAllClasses(Config config, Collection<? extends TypeElement> rootClasses) { List<Pattern> includeRegexList = config.getClasses().getIncludes(); List<Pattern> excludeRegexList = config.getClasses().getExcludes(); OUTER: for (TypeElement typeDecl : rootClasses) { String qualifiedName = typeDecl.getQualifiedName().toString(); for (Pattern pattern : excludeRegexList) { boolean match = checkPatternMatch(qualifiedName, pattern); if (match) continue OUTER; // excluded } for (Pattern pattern : includeRegexList) { boolean match = checkPatternMatch(qualifiedName, pattern); if (match) { classesToBeIncluded.add(new Reference(typeDecl,env)); break; } } } }
Config config = new Config(runtime); runtime.setRootHandler(config); reader.parse(new InputSource(xmlFile.toURL().toExternalForm()));
case 0: revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); unexpectedEnterElement($__qname); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); default: unexpectedEnterElement($__qname);
case 0: revertToParentFromText(this, super._cookie, $value); action1();
case 0: revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); unexpectedLeaveAttribute($__qname); default: unexpectedLeaveAttribute($__qname);
case 0: revertToParentFromLeaveElement(this, super._cookie, $__uri, $__local, $__qname); unexpectedLeaveElement($__qname); unexpectedLeaveElement($__qname); default: unexpectedLeaveElement($__qname);
private void checkAllClasses(Config config, Collection<? extends TypeElement> rootClasses) { List<Pattern> includeRegexList = config.getClasses().getIncludes(); List<Pattern> excludeRegexList = config.getClasses().getExcludes(); OUTER: for (TypeElement typeDecl : rootClasses) { String qualifiedName = typeDecl.getQualifiedName().toString(); for (Pattern pattern : excludeRegexList) { boolean match = checkPatternMatch(qualifiedName, pattern); if (match) continue OUTER; // excluded } for (Pattern pattern : includeRegexList) { boolean match = checkPatternMatch(qualifiedName, pattern); if (match) { classesToBeIncluded.add(new Reference(typeDecl,env)); break; } } } }
Config config = new Config(runtime); runtime.setRootHandler(config); reader.parse(new InputSource(xmlFile.toURL().toExternalForm()));
case 0: revertToParentFromEnterElement(this, super._cookie, $__uri, $__local, $__qname, $attrs); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); unexpectedEnterElement($__qname); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); spawnChildFromEnterElement(h, $__uri, $__local, $__qname, $attrs); unexpectedEnterElement($__qname); default: unexpectedEnterElement($__qname);
private SchemaOutputResolver createSchemaOutputResolver(Config config, String xmlpath) { File baseDir = new File(xmlpath, config.getBaseDir().getPath()); SchemaOutputResolverImpl outResolver = new SchemaOutputResolverImpl (baseDir); for( Schema schema : (List<Schema>)config.getSchema() ) { String namespace = schema.getNamespace(); File location = schema.getLocation(); outResolver.addSchemaInfo(namespace,location); } return outResolver; }
case 0: revertToParentFromText(this, super._cookie, $value); action1();
case 0: revertToParentFromEnterAttribute(this, super._cookie, $__uri, $__local, $__qname); unexpectedEnterAttribute($__qname); default: unexpectedEnterAttribute($__qname);
case 0: revertToParentFromLeaveAttribute(this, super._cookie, $__uri, $__local, $__qname); unexpectedLeaveAttribute($__qname); default: unexpectedLeaveAttribute($__qname);