public final class com.sun.tools.internal.jxc.ConfigReader
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.tools.internal.jxc.ConfigReader
super_class: java.lang.Object
{
private final java.util.Set<com.sun.tools.internal.xjc.api.Reference> classesToBeIncluded;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lcom/sun/tools/internal/xjc/api/Reference;>;
private final javax.xml.bind.SchemaOutputResolver schemaOutputResolver;
descriptor: Ljavax/xml/bind/SchemaOutputResolver;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final javax.annotation.processing.ProcessingEnvironment env;
descriptor: Ljavax/annotation/processing/ProcessingEnvironment;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static com.sun.tools.internal.xjc.SchemaCache configSchema;
descriptor: Lcom/sun/tools/internal/xjc/SchemaCache;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: new com.sun.tools.internal.xjc.SchemaCache
dup
ldc "config.xsd"
ldc Lcom/sun/tools/internal/jxc/gen/config/Config;
iconst_1
invokespecial com.sun.tools.internal.xjc.SchemaCache.<init>:(Ljava/lang/String;Ljava/lang/Class;Z)V
putstatic com.sun.tools.internal.jxc.ConfigReader.configSchema:Lcom/sun/tools/internal/xjc/SchemaCache;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(javax.annotation.processing.ProcessingEnvironment, java.util.Collection<? extends javax.lang.model.element.TypeElement>, java.io.File, org.xml.sax.ErrorHandler);
descriptor: (Ljavax/annotation/processing/ProcessingEnvironment;Ljava/util/Collection;Ljava/io/File;Lorg/xml/sax/ErrorHandler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.sun.tools.internal.jxc.ConfigReader.classesToBeIncluded:Ljava/util/Set;
2: aload 0
aload 1
putfield com.sun.tools.internal.jxc.ConfigReader.env:Ljavax/annotation/processing/ProcessingEnvironment;
3: aload 0
aload 3
aload 4
aload 1
invokeinterface javax.annotation.processing.ProcessingEnvironment.getOptions:()Ljava/util/Map;
ldc "-disableXmlSecurity"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
invokevirtual com.sun.tools.internal.jxc.ConfigReader.parseAndGetConfig:(Ljava/io/File;Lorg/xml/sax/ErrorHandler;Z)Lcom/sun/tools/internal/jxc/gen/config/Config;
astore 5
start local 5 4: aload 0
aload 5
aload 2
invokevirtual com.sun.tools.internal.jxc.ConfigReader.checkAllClasses:(Lcom/sun/tools/internal/jxc/gen/config/Config;Ljava/util/Collection;)V
5: aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 6
start local 6 6: aload 6
iconst_0
aload 6
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
start local 7 7: aload 0
aload 0
aload 5
aload 7
invokevirtual com.sun.tools.internal.jxc.ConfigReader.createSchemaOutputResolver:(Lcom/sun/tools/internal/jxc/gen/config/Config;Ljava/lang/String;)Ljavax/xml/bind/SchemaOutputResolver;
putfield com.sun.tools.internal.jxc.ConfigReader.schemaOutputResolver:Ljavax/xml/bind/SchemaOutputResolver;
8: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
0 9 1 env Ljavax/annotation/processing/ProcessingEnvironment;
0 9 2 classes Ljava/util/Collection<+Ljavax/lang/model/element/TypeElement;>;
0 9 3 xmlFile Ljava/io/File;
0 9 4 errorHandler Lorg/xml/sax/ErrorHandler;
4 9 5 config Lcom/sun/tools/internal/jxc/gen/config/Config;
6 9 6 path Ljava/lang/String;
7 9 7 xmlPath Ljava/lang/String;
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
Signature: (Ljavax/annotation/processing/ProcessingEnvironment;Ljava/util/Collection<+Ljavax/lang/model/element/TypeElement;>;Ljava/io/File;Lorg/xml/sax/ErrorHandler;)V
MethodParameters:
Name Flags
env
classes
xmlFile
errorHandler
public java.util.Collection<com.sun.tools.internal.xjc.api.Reference> getClassesToBeIncluded();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.internal.jxc.ConfigReader.classesToBeIncluded:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
Signature: ()Ljava/util/Collection<Lcom/sun/tools/internal/xjc/api/Reference;>;
private void checkAllClasses(com.sun.tools.internal.jxc.gen.config.Config, java.util.Collection<? extends javax.lang.model.element.TypeElement>);
descriptor: (Lcom/sun/tools/internal/jxc/gen/config/Config;Ljava/util/Collection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=11, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual com.sun.tools.internal.jxc.gen.config.Config.getClasses:()Lcom/sun/tools/internal/jxc/gen/config/Classes;
invokevirtual com.sun.tools.internal.jxc.gen.config.Classes.getIncludes:()Ljava/util/List;
astore 3
start local 3 1: aload 1
invokevirtual com.sun.tools.internal.jxc.gen.config.Config.getClasses:()Lcom/sun/tools/internal/jxc/gen/config/Classes;
invokevirtual com.sun.tools.internal.jxc.gen.config.Classes.getExcludes:()Ljava/util/List;
astore 4
start local 4 2: aload 2
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 18
StackMap locals: com.sun.tools.internal.jxc.ConfigReader com.sun.tools.internal.jxc.gen.config.Config java.util.Collection java.util.List java.util.List top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.lang.model.element.TypeElement
astore 5
start local 5 4: aload 5
invokeinterface javax.lang.model.element.TypeElement.getQualifiedName:()Ljavax/lang/model/element/Name;
invokeinterface javax.lang.model.element.Name.toString:()Ljava/lang/String;
astore 7
start local 7 5: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 10
StackMap locals: com.sun.tools.internal.jxc.ConfigReader com.sun.tools.internal.jxc.gen.config.Config java.util.Collection java.util.List java.util.List javax.lang.model.element.TypeElement java.util.Iterator java.lang.String top java.util.Iterator
StackMap stack:
6: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.regex.Pattern
astore 8
start local 8 7: aload 0
aload 7
aload 8
invokevirtual com.sun.tools.internal.jxc.ConfigReader.checkPatternMatch:(Ljava/lang/String;Ljava/util/regex/Pattern;)Z
istore 10
start local 10 8: iload 10
ifeq 10
9: goto 18
end local 10 end local 8 10: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
11: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 9
goto 17
StackMap locals:
StackMap stack:
12: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.regex.Pattern
astore 8
start local 8 13: aload 0
aload 7
aload 8
invokevirtual com.sun.tools.internal.jxc.ConfigReader.checkPatternMatch:(Ljava/lang/String;Ljava/util/regex/Pattern;)Z
istore 10
start local 10 14: iload 10
ifeq 17
15: aload 0
getfield com.sun.tools.internal.jxc.ConfigReader.classesToBeIncluded:Ljava/util/Set;
new com.sun.tools.internal.xjc.api.Reference
dup
aload 5
aload 0
getfield com.sun.tools.internal.jxc.ConfigReader.env:Ljavax/annotation/processing/ProcessingEnvironment;
invokespecial com.sun.tools.internal.xjc.api.Reference.<init>:(Ljavax/lang/model/element/TypeElement;Ljavax/annotation/processing/ProcessingEnvironment;)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
16: goto 18
end local 10 end local 8 17: StackMap locals:
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
end local 7 end local 5 18: StackMap locals: com.sun.tools.internal.jxc.ConfigReader com.sun.tools.internal.jxc.gen.config.Config java.util.Collection java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
19: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
0 20 1 config Lcom/sun/tools/internal/jxc/gen/config/Config;
0 20 2 rootClasses Ljava/util/Collection<+Ljavax/lang/model/element/TypeElement;>;
1 20 3 includeRegexList Ljava/util/List<Ljava/util/regex/Pattern;>;
2 20 4 excludeRegexList Ljava/util/List<Ljava/util/regex/Pattern;>;
4 18 5 typeDecl Ljavax/lang/model/element/TypeElement;
5 18 7 qualifiedName Ljava/lang/String;
7 10 8 pattern Ljava/util/regex/Pattern;
8 10 10 match Z
13 17 8 pattern Ljava/util/regex/Pattern;
14 17 10 match Z
Signature: (Lcom/sun/tools/internal/jxc/gen/config/Config;Ljava/util/Collection<+Ljavax/lang/model/element/TypeElement;>;)V
MethodParameters:
Name Flags
config
rootClasses
public javax.xml.bind.SchemaOutputResolver getSchemaOutputResolver();
descriptor: ()Ljavax/xml/bind/SchemaOutputResolver;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.internal.jxc.ConfigReader.schemaOutputResolver:Ljavax/xml/bind/SchemaOutputResolver;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
private javax.xml.bind.SchemaOutputResolver createSchemaOutputResolver(com.sun.tools.internal.jxc.gen.config.Config, java.lang.String);
descriptor: (Lcom/sun/tools/internal/jxc/gen/config/Config;Ljava/lang/String;)Ljavax/xml/bind/SchemaOutputResolver;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new java.io.File
dup
aload 2
aload 1
invokevirtual com.sun.tools.internal.jxc.gen.config.Config.getBaseDir:()Ljava/io/File;
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 1: new com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl
dup
aload 3
invokespecial com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl.<init>:(Ljava/io/File;)V
astore 4
start local 4 2: aload 1
invokevirtual com.sun.tools.internal.jxc.gen.config.Config.getSchema:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: com.sun.tools.internal.jxc.ConfigReader com.sun.tools.internal.jxc.gen.config.Config java.lang.String java.io.File com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.internal.jxc.gen.config.Schema
astore 5
start local 5 4: aload 5
invokevirtual com.sun.tools.internal.jxc.gen.config.Schema.getNamespace:()Ljava/lang/String;
astore 7
start local 7 5: aload 5
invokevirtual com.sun.tools.internal.jxc.gen.config.Schema.getLocation:()Ljava/io/File;
astore 8
start local 8 6: aload 4
aload 7
aload 8
invokevirtual com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl.addSchemaInfo:(Ljava/lang/String;Ljava/io/File;)V
end local 8 end local 7 end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
0 9 1 config Lcom/sun/tools/internal/jxc/gen/config/Config;
0 9 2 xmlpath Ljava/lang/String;
1 9 3 baseDir Ljava/io/File;
2 9 4 outResolver Lcom/sun/tools/internal/jxc/ConfigReader$SchemaOutputResolverImpl;
4 7 5 schema Lcom/sun/tools/internal/jxc/gen/config/Schema;
5 7 7 namespace Ljava/lang/String;
6 7 8 location Ljava/io/File;
MethodParameters:
Name Flags
config
xmlpath
private boolean checkPatternMatch(java.lang.String, java.util.regex.Pattern);
descriptor: (Ljava/lang/String;Ljava/util/regex/Pattern;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 3
start local 3 1: aload 3
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
0 2 1 qualifiedName Ljava/lang/String;
0 2 2 pattern Ljava/util/regex/Pattern;
1 2 3 matcher Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
qualifiedName
pattern
private com.sun.tools.internal.jxc.gen.config.Config parseAndGetConfig(java.io.File, org.xml.sax.ErrorHandler, boolean);
descriptor: (Ljava/io/File;Lorg/xml/sax/ErrorHandler;Z)Lcom/sun/tools/internal/jxc/gen/config/Config;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
invokestatic com.sun.xml.internal.bind.v2.util.XmlFactory.createParserFactory:(Z)Ljavax/xml/parsers/SAXParserFactory;
astore 5
start local 5 1: aload 5
invokevirtual javax.xml.parsers.SAXParserFactory.newSAXParser:()Ljavax/xml/parsers/SAXParser;
invokevirtual javax.xml.parsers.SAXParser.getXMLReader:()Lorg/xml/sax/XMLReader;
astore 4
end local 5 start local 4 2: goto 5
end local 4 StackMap locals:
StackMap stack: javax.xml.parsers.ParserConfigurationException
3: astore 5
start local 5 4: new java.lang.Error
dup
aload 5
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 start local 4 5: StackMap locals: org.xml.sax.XMLReader
StackMap stack:
new com.sun.tools.internal.jxc.NGCCRuntimeEx
dup
aload 2
invokespecial com.sun.tools.internal.jxc.NGCCRuntimeEx.<init>:(Lorg/xml/sax/ErrorHandler;)V
astore 5
start local 5 6: getstatic com.sun.tools.internal.jxc.ConfigReader.configSchema:Lcom/sun/tools/internal/xjc/SchemaCache;
invokevirtual com.sun.tools.internal.xjc.SchemaCache.newValidator:()Ljavax/xml/validation/ValidatorHandler;
astore 6
start local 6 7: aload 6
aload 2
invokevirtual javax.xml.validation.ValidatorHandler.setErrorHandler:(Lorg/xml/sax/ErrorHandler;)V
8: aload 4
new com.sun.tools.internal.xjc.util.ForkContentHandler
dup
aload 6
aload 5
invokespecial com.sun.tools.internal.xjc.util.ForkContentHandler.<init>:(Lorg/xml/sax/ContentHandler;Lorg/xml/sax/ContentHandler;)V
invokeinterface org.xml.sax.XMLReader.setContentHandler:(Lorg/xml/sax/ContentHandler;)V
9: aload 4
aload 2
invokeinterface org.xml.sax.XMLReader.setErrorHandler:(Lorg/xml/sax/ErrorHandler;)V
10: new com.sun.tools.internal.jxc.gen.config.Config
dup
aload 5
invokespecial com.sun.tools.internal.jxc.gen.config.Config.<init>:(Lcom/sun/tools/internal/jxc/NGCCRuntimeEx;)V
astore 7
start local 7 11: aload 5
aload 7
invokevirtual com.sun.tools.internal.jxc.NGCCRuntimeEx.setRootHandler:(Lcom/sun/tools/internal/jxc/gen/config/NGCCHandler;)V
12: aload 4
new org.xml.sax.InputSource
dup
aload 1
invokevirtual java.io.File.toURL:()Ljava/net/URL;
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
invokespecial org.xml.sax.InputSource.<init>:(Ljava/lang/String;)V
invokeinterface org.xml.sax.XMLReader.parse:(Lorg/xml/sax/InputSource;)V
13: aload 5
invokevirtual com.sun.tools.internal.jxc.NGCCRuntimeEx.reset:()V
14: aload 7
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/tools/internal/jxc/ConfigReader;
0 15 1 xmlFile Ljava/io/File;
0 15 2 errorHandler Lorg/xml/sax/ErrorHandler;
0 15 3 disableSecureProcessing Z
2 3 4 reader Lorg/xml/sax/XMLReader;
5 15 4 reader Lorg/xml/sax/XMLReader;
1 2 5 factory Ljavax/xml/parsers/SAXParserFactory;
4 5 5 e Ljavax/xml/parsers/ParserConfigurationException;
6 15 5 runtime Lcom/sun/tools/internal/jxc/NGCCRuntimeEx;
7 15 6 validator Ljavax/xml/validation/ValidatorHandler;
11 15 7 config Lcom/sun/tools/internal/jxc/gen/config/Config;
Exception table:
from to target type
0 2 3 Class javax.xml.parsers.ParserConfigurationException
Exceptions:
throws org.xml.sax.SAXException, java.io.IOException
MethodParameters:
Name Flags
xmlFile
errorHandler
disableSecureProcessing
}
SourceFile: "ConfigReader.java"
NestMembers:
com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl
InnerClasses:
private final SchemaOutputResolverImpl = com.sun.tools.internal.jxc.ConfigReader$SchemaOutputResolverImpl of com.sun.tools.internal.jxc.ConfigReader