public final class com.sun.xml.internal.txw2.Document
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.xml.internal.txw2.Document
super_class: java.lang.Object
{
private final com.sun.xml.internal.txw2.output.XmlSerializer out;
descriptor: Lcom/sun/xml/internal/txw2/output/XmlSerializer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean started;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private com.sun.xml.internal.txw2.Content current;
descriptor: Lcom/sun/xml/internal/txw2/Content;
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<java.lang.Class, com.sun.xml.internal.txw2.DatatypeWriter> datatypeWriters;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class;Lcom/sun/xml/internal/txw2/DatatypeWriter;>;
private int iota;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final com.sun.xml.internal.txw2.NamespaceSupport inscopeNamespace;
descriptor: Lcom/sun/xml/internal/txw2/NamespaceSupport;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private com.sun.xml.internal.txw2.NamespaceDecl activeNamespaces;
descriptor: Lcom/sun/xml/internal/txw2/NamespaceDecl;
flags: (0x0002) ACC_PRIVATE
private final com.sun.xml.internal.txw2.ContentVisitor visitor;
descriptor: Lcom/sun/xml/internal/txw2/ContentVisitor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.StringBuilder prefixSeed;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int prefixIota;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static final char MAGIC;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/sun/xml/internal/txw2/Document;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.sun.xml.internal.txw2.Document.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(com.sun.xml.internal.txw2.output.XmlSerializer);
descriptor: (Lcom/sun/xml/internal/txw2/output/XmlSerializer;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.sun.xml.internal.txw2.Document.started:Z
2: aload 0
aconst_null
putfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.xml.internal.txw2.Document.datatypeWriters:Ljava/util/Map;
4: aload 0
iconst_1
putfield com.sun.xml.internal.txw2.Document.iota:I
5: aload 0
new com.sun.xml.internal.txw2.NamespaceSupport
dup
invokespecial com.sun.xml.internal.txw2.NamespaceSupport.<init>:()V
putfield com.sun.xml.internal.txw2.Document.inscopeNamespace:Lcom/sun/xml/internal/txw2/NamespaceSupport;
6: aload 0
new com.sun.xml.internal.txw2.Document$1
dup
aload 0
invokespecial com.sun.xml.internal.txw2.Document$1.<init>:(Lcom/sun/xml/internal/txw2/Document;)V
putfield com.sun.xml.internal.txw2.Document.visitor:Lcom/sun/xml/internal/txw2/ContentVisitor;
7: aload 0
new java.lang.StringBuilder
dup
ldc "ns"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
putfield com.sun.xml.internal.txw2.Document.prefixSeed:Ljava/lang/StringBuilder;
8: aload 0
iconst_0
putfield com.sun.xml.internal.txw2.Document.prefixIota:I
9: aload 0
aload 1
putfield com.sun.xml.internal.txw2.Document.out:Lcom/sun/xml/internal/txw2/output/XmlSerializer;
10: getstatic com.sun.xml.internal.txw2.DatatypeWriter.BUILTIN:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 13
StackMap locals: com.sun.xml.internal.txw2.Document com.sun.xml.internal.txw2.output.XmlSerializer top java.util.Iterator
StackMap stack:
11: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.xml.internal.txw2.DatatypeWriter
astore 2
start local 2 12: aload 0
getfield com.sun.xml.internal.txw2.Document.datatypeWriters:Ljava/util/Map;
aload 2
invokeinterface com.sun.xml.internal.txw2.DatatypeWriter.getType:()Ljava/lang/Class;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/xml/internal/txw2/Document;
0 15 1 out Lcom/sun/xml/internal/txw2/output/XmlSerializer;
12 13 2 dw Lcom/sun/xml/internal/txw2/DatatypeWriter;
MethodParameters:
Name Flags
out
void flush();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.txw2.Document.out:Lcom/sun/xml/internal/txw2/output/XmlSerializer;
invokeinterface com.sun.xml.internal.txw2.output.XmlSerializer.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/txw2/Document;
void setFirstContent(com.sun.xml.internal.txw2.Content);
descriptor: (Lcom/sun/xml/internal/txw2/Content;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.sun.xml.internal.txw2.Document.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
ifnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
new com.sun.xml.internal.txw2.StartDocument
dup
invokespecial com.sun.xml.internal.txw2.StartDocument.<init>:()V
putfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
2: aload 0
getfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
aload 0
aload 1
invokevirtual com.sun.xml.internal.txw2.Content.setNext:(Lcom/sun/xml/internal/txw2/Document;Lcom/sun/xml/internal/txw2/Content;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/xml/internal/txw2/Document;
0 4 1 c Lcom/sun/xml/internal/txw2/Content;
MethodParameters:
Name Flags
c
public void addDatatypeWriter(com.sun.xml.internal.txw2.DatatypeWriter<?>);
descriptor: (Lcom/sun/xml/internal/txw2/DatatypeWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.xml.internal.txw2.Document.datatypeWriters:Ljava/util/Map;
aload 1
invokeinterface com.sun.xml.internal.txw2.DatatypeWriter.getType:()Ljava/lang/Class;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/xml/internal/txw2/Document;
0 2 1 dw Lcom/sun/xml/internal/txw2/DatatypeWriter<*>;
Signature: (Lcom/sun/xml/internal/txw2/DatatypeWriter<*>;)V
MethodParameters:
Name Flags
dw
void run();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
invokevirtual com.sun.xml.internal.txw2.Content.getNext:()Lcom/sun/xml/internal/txw2/Content;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual com.sun.xml.internal.txw2.Content.isReadyToCommit:()Z
ifne 3
2: StackMap locals: com.sun.xml.internal.txw2.Content
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield com.sun.xml.internal.txw2.Document.visitor:Lcom/sun/xml/internal/txw2/ContentVisitor;
invokevirtual com.sun.xml.internal.txw2.Content.accept:(Lcom/sun/xml/internal/txw2/ContentVisitor;)V
4: aload 1
invokevirtual com.sun.xml.internal.txw2.Content.written:()V
5: aload 0
aload 1
putfield com.sun.xml.internal.txw2.Document.current:Lcom/sun/xml/internal/txw2/Content;
end local 1 6: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/xml/internal/txw2/Document;
1 6 1 next Lcom/sun/xml/internal/txw2/Content;
void writeValue(java.lang.Object, com.sun.xml.internal.txw2.NamespaceResolver, java.lang.StringBuilder);
descriptor: (Ljava/lang/Object;Lcom/sun/xml/internal/txw2/NamespaceResolver;Ljava/lang/StringBuilder;)V
flags: (0x0000)
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "argument contains null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Object[]
ifeq 9
3: aload 1
checkcast java.lang.Object[]
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 7
StackMap locals: com.sun.xml.internal.txw2.Document java.lang.Object com.sun.xml.internal.txw2.NamespaceResolver java.lang.StringBuilder top int int java.lang.Object[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: aload 0
aload 4
aload 2
aload 3
invokevirtual com.sun.xml.internal.txw2.Document.writeValue:(Ljava/lang/Object;Lcom/sun/xml/internal/txw2/NamespaceResolver;Ljava/lang/StringBuilder;)V
end local 4 6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 6
if_icmplt 4
8: return
9: StackMap locals: com.sun.xml.internal.txw2.Document java.lang.Object com.sun.xml.internal.txw2.NamespaceResolver java.lang.StringBuilder
StackMap stack:
aload 1
instanceof java.lang.Iterable
ifeq 15
10: aload 1
checkcast java.lang.Iterable
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: com.sun.xml.internal.txw2.Document java.lang.Object com.sun.xml.internal.txw2.NamespaceResolver java.lang.StringBuilder top java.util.Iterator
StackMap stack:
11: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 12: aload 0
aload 4
aload 2
aload 3
invokevirtual com.sun.xml.internal.txw2.Document.writeValue:(Ljava/lang/Object;Lcom/sun/xml/internal/txw2/NamespaceResolver;Ljava/lang/StringBuilder;)V
end local 4 13: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: return
15: StackMap locals: com.sun.xml.internal.txw2.Document java.lang.Object com.sun.xml.internal.txw2.NamespaceResolver java.lang.StringBuilder
StackMap stack:
aload 3
invokevirtual java.lang.StringBuilder.length:()I
ifle 17
16: aload 3
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 4
start local 4 18: goto 24
19: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield com.sun.xml.internal.txw2.Document.datatypeWriters:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.xml.internal.txw2.DatatypeWriter
astore 5
start local 5 20: aload 5
ifnull 23
21: aload 5
aload 1
aload 2
aload 3
invokeinterface com.sun.xml.internal.txw2.DatatypeWriter.print:(Ljava/lang/Object;Lcom/sun/xml/internal/txw2/NamespaceResolver;Ljava/lang/StringBuilder;)V
22: return
23: StackMap locals: com.sun.xml.internal.txw2.DatatypeWriter
StackMap stack:
aload 4
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 4
end local 5 24: StackMap locals:
StackMap stack:
aload 4
ifnonnull 19
25: aload 3
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/sun/xml/internal/txw2/Document;
0 27 1 obj Ljava/lang/Object;
0 27 2 nsResolver Lcom/sun/xml/internal/txw2/NamespaceResolver;
0 27 3 buf Ljava/lang/StringBuilder;
5 6 4 o Ljava/lang/Object;
12 13 4 o Ljava/lang/Object;
18 27 4 c Ljava/lang/Class;
20 24 5 dw Lcom/sun/xml/internal/txw2/DatatypeWriter;
MethodParameters:
Name Flags
obj
nsResolver
buf
private java.lang.String newPrefix();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.xml.internal.txw2.Document.prefixSeed:Ljava/lang/StringBuilder;
iconst_2
invokevirtual java.lang.StringBuilder.setLength:(I)V
1: aload 0
getfield com.sun.xml.internal.txw2.Document.prefixSeed:Ljava/lang/StringBuilder;
aload 0
dup
getfield com.sun.xml.internal.txw2.Document.prefixIota:I
iconst_1
iadd
dup_x1
putfield com.sun.xml.internal.txw2.Document.prefixIota:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
2: aload 0
getfield com.sun.xml.internal.txw2.Document.prefixSeed:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/xml/internal/txw2/Document;
private java.lang.StringBuilder fixPrefix(java.lang.StringBuilder);
descriptor: (Ljava/lang/StringBuilder;)Ljava/lang/StringBuilder;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: getstatic com.sun.xml.internal.txw2.Document.$assertionsDisabled:Z
ifne 1
aload 0
getfield com.sun.xml.internal.txw2.Document.activeNamespaces:Lcom/sun/xml/internal/txw2/NamespaceDecl;
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.length:()I
istore 3
start local 3 2: iconst_0
istore 2
start local 2 3: goto 7
4: StackMap locals: int int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.StringBuilder.charAt:(I)C
ifne 6
5: goto 8
6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 3
if_icmplt 4
8: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmpne 28
9: aload 1
areturn
10: StackMap locals:
StackMap stack:
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.StringBuilder.charAt:(I)C
istore 4
start local 4 11: aload 0
getfield com.sun.xml.internal.txw2.Document.activeNamespaces:Lcom/sun/xml/internal/txw2/NamespaceDecl;
astore 5
start local 5 12: goto 14
13: StackMap locals: int com.sun.xml.internal.txw2.NamespaceDecl
StackMap stack:
aload 5
getfield com.sun.xml.internal.txw2.NamespaceDecl.next:Lcom/sun/xml/internal/txw2/NamespaceDecl;
astore 5
14: StackMap locals:
StackMap stack:
aload 5
ifnull 15
aload 5
getfield com.sun.xml.internal.txw2.NamespaceDecl.uniqueId:C
iload 4
if_icmpne 13
15: StackMap locals:
StackMap stack:
aload 5
ifnonnull 17
16: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected use of prefixes "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
iconst_2
istore 6
start local 6 18: aload 5
getfield com.sun.xml.internal.txw2.NamespaceDecl.prefix:Ljava/lang/String;
astore 7
start local 7 19: aload 7
invokevirtual java.lang.String.length:()I
ifne 23
20: aload 1
invokevirtual java.lang.StringBuilder.length:()I
iload 2
iconst_2
iadd
if_icmple 21
aload 1
iload 2
iconst_2
iadd
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 58
if_icmpeq 22
21: StackMap locals: int java.lang.String
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected use of prefixes "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
iconst_3
istore 6
23: StackMap locals:
StackMap stack:
aload 1
iload 2
iload 2
iload 6
iadd
aload 7
invokevirtual java.lang.StringBuilder.replace:(IILjava/lang/String;)Ljava/lang/StringBuilder;
pop
24: iload 3
aload 7
invokevirtual java.lang.String.length:()I
iload 6
isub
iadd
istore 3
25: goto 27
26: StackMap locals:
StackMap stack:
iinc 2 1
27: StackMap locals:
StackMap stack:
iload 2
iload 3
if_icmpge 28
aload 1
iload 2
invokevirtual java.lang.StringBuilder.charAt:(I)C
ifne 26
end local 7 end local 6 end local 5 end local 4 28: StackMap locals: com.sun.xml.internal.txw2.Document java.lang.StringBuilder int int
StackMap stack:
iload 2
iload 3
if_icmplt 10
29: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lcom/sun/xml/internal/txw2/Document;
0 30 1 buf Ljava/lang/StringBuilder;
3 30 2 i I
2 30 3 len I
11 28 4 uriIdx C
12 28 5 ns Lcom/sun/xml/internal/txw2/NamespaceDecl;
18 28 6 length I
19 28 7 prefix Ljava/lang/String;
MethodParameters:
Name Flags
buf
char assignNewId();
descriptor: ()C
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield com.sun.xml.internal.txw2.Document.iota:I
dup_x1
iconst_1
iadd
putfield com.sun.xml.internal.txw2.Document.iota:I
i2c
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/xml/internal/txw2/Document;
}
SourceFile: "Document.java"
NestMembers:
com.sun.xml.internal.txw2.Document$1
InnerClasses:
com.sun.xml.internal.txw2.Document$1