public final class com.sun.tools.internal.xjc.SchemaCache
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.tools.internal.xjc.SchemaCache
super_class: java.lang.Object
{
private final boolean createResolver;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String resourceName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<?> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private javax.xml.validation.Schema schema;
descriptor: Ljavax/xml/validation/Schema;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, java.lang.Class<?>);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokespecial com.sun.tools.internal.xjc.SchemaCache.<init>:(Ljava/lang/String;Ljava/lang/Class;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/internal/xjc/SchemaCache;
0 2 1 resourceName Ljava/lang/String;
0 2 2 classToResolveResources Ljava/lang/Class<*>;
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
resourceName
classToResolveResources
public void <init>(java.lang.String, java.lang.Class<?>, );
descriptor: (Ljava/lang/String;Ljava/lang/Class;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.tools.internal.xjc.SchemaCache.resourceName:Ljava/lang/String;
2: aload 0
iload 3
putfield com.sun.tools.internal.xjc.SchemaCache.createResolver:Z
3: aload 0
aload 2
putfield com.sun.tools.internal.xjc.SchemaCache.clazz:Ljava/lang/Class;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/tools/internal/xjc/SchemaCache;
0 5 1 resourceName Ljava/lang/String;
0 5 2 classToResolveResources Ljava/lang/Class<*>;
0 5 3 createResolver Z
Signature: (Ljava/lang/String;Ljava/lang/Class<*>;Z)V
MethodParameters:
Name Flags
resourceName
classToResolveResources
createResolver
public javax.xml.validation.ValidatorHandler newValidator();
descriptor: ()Ljavax/xml/validation/ValidatorHandler;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=10, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.schema:Ljavax/xml/validation/Schema;
ifnonnull 32
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.schema:Ljavax/xml/validation/Schema;
ifnonnull 28
3: aconst_null
astore 2
start local 2 4: aconst_null
astore 3
aconst_null
astore 4
5: aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.clazz:Ljava/lang/Class;
aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.resourceName:Ljava/lang/String;
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 5
start local 5 6: new javax.xml.transform.stream.StreamSource
dup
aload 5
invokespecial javax.xml.transform.stream.StreamSource.<init>:(Ljava/io/InputStream;)V
astore 6
start local 6 7: aload 6
aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.resourceName:Ljava/lang/String;
invokevirtual javax.xml.transform.stream.StreamSource.setSystemId:(Ljava/lang/String;)V
8: ldc "http://www.w3.org/2001/XMLSchema"
iconst_0
invokestatic com.sun.xml.internal.bind.v2.util.XmlFactory.createSchemaFactory:(Ljava/lang/String;Z)Ljavax/xml/validation/SchemaFactory;
astore 7
start local 7 9: aload 7
ldc "file"
iconst_0
invokestatic com.sun.xml.internal.bind.v2.util.XmlFactory.allowExternalAccess:(Ljavax/xml/validation/SchemaFactory;Ljava/lang/String;Z)Ljavax/xml/validation/SchemaFactory;
astore 8
start local 8 10: aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.createResolver:Z
ifeq 13
11: new com.sun.tools.internal.xjc.SchemaCache$ResourceResolver
dup
aload 0
aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.clazz:Ljava/lang/Class;
invokespecial com.sun.tools.internal.xjc.SchemaCache$ResourceResolver.<init>:(Lcom/sun/tools/internal/xjc/SchemaCache;Ljava/lang/Class;)V
astore 2
12: aload 8
aload 2
invokevirtual javax.xml.validation.SchemaFactory.setResourceResolver:(Lorg/w3c/dom/ls/LSResourceResolver;)V
13: StackMap locals: com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache$ResourceResolver java.lang.Throwable java.lang.Throwable java.io.InputStream javax.xml.transform.stream.StreamSource javax.xml.validation.SchemaFactory javax.xml.validation.SchemaFactory
StackMap stack:
aload 0
aload 8
aload 6
invokevirtual javax.xml.validation.SchemaFactory.newSchema:(Ljavax/xml/transform/Source;)Ljavax/xml/validation/Schema;
putfield com.sun.tools.internal.xjc.SchemaCache.schema:Ljavax/xml/validation/Schema;
end local 8 end local 7 end local 6 14: aload 5
ifnull 27
aload 5
invokevirtual java.io.InputStream.close:()V
goto 27
StackMap locals: com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache$ResourceResolver java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
15: astore 3
aload 5
ifnull 16
aload 5
invokevirtual java.io.InputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
16: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 4
aload 3
ifnonnull 18
aload 4
astore 3
goto 19
StackMap locals:
StackMap stack:
18: aload 3
aload 4
if_acmpeq 19
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
19: aload 3
athrow
StackMap locals: com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache$ResourceResolver
StackMap stack: java.lang.Exception
20: astore 3
start local 3 21: new java.lang.InternalError
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
astore 4
start local 4 22: aload 4
aload 3
invokevirtual java.lang.InternalError.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
pop
23: aload 4
athrow
end local 4 end local 3 24: StackMap locals:
StackMap stack: java.lang.Throwable
astore 9
25: aload 2
ifnull 26
aload 2
invokevirtual com.sun.tools.internal.xjc.SchemaCache$ResourceResolver.closeStreams:()V
26: StackMap locals: com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache$ResourceResolver top top top top top top java.lang.Throwable
StackMap stack:
aload 9
athrow
27: StackMap locals: com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache com.sun.tools.internal.xjc.SchemaCache$ResourceResolver
StackMap stack:
aload 2
ifnull 28
aload 2
invokevirtual com.sun.tools.internal.xjc.SchemaCache$ResourceResolver.closeStreams:()V
end local 2 28: StackMap locals:
StackMap stack:
aload 1
monitorexit
29: goto 32
StackMap locals:
StackMap stack: java.lang.Throwable
30: aload 1
monitorexit
31: athrow
32: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.internal.xjc.SchemaCache.schema:Ljavax/xml/validation/Schema;
invokevirtual javax.xml.validation.Schema.newValidatorHandler:()Ljavax/xml/validation/ValidatorHandler;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lcom/sun/tools/internal/xjc/SchemaCache;
4 28 2 resourceResolver Lcom/sun/tools/internal/xjc/SchemaCache$ResourceResolver;
6 16 5 is Ljava/io/InputStream;
7 14 6 source Ljavax/xml/transform/stream/StreamSource;
9 14 7 sf Ljavax/xml/validation/SchemaFactory;
10 14 8 schemaFactory Ljavax/xml/validation/SchemaFactory;
21 24 3 e Ljava/lang/Exception;
22 24 4 ie Ljava/lang/InternalError;
Exception table:
from to target type
6 14 15 any
5 17 17 any
4 20 20 Class java.io.IOException
4 20 20 Class org.xml.sax.SAXException
4 24 24 any
2 29 30 any
30 31 30 any
}
SourceFile: "SchemaCache.java"
NestMembers:
com.sun.tools.internal.xjc.SchemaCache$ResourceResolver
InnerClasses:
ResourceResolver = com.sun.tools.internal.xjc.SchemaCache$ResourceResolver of com.sun.tools.internal.xjc.SchemaCache