public class com.ctc.wstx.evt.MergedNsContext extends com.ctc.wstx.util.BaseNsContext
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.ctc.wstx.evt.MergedNsContext
super_class: com.ctc.wstx.util.BaseNsContext
{
final javax.xml.namespace.NamespaceContext mParentCtxt;
descriptor: Ljavax/xml/namespace/NamespaceContext;
flags: (0x0010) ACC_FINAL
final java.util.List<javax.xml.stream.events.Namespace> mNamespaces;
descriptor: Ljava/util/List;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/List<Ljavax/xml/stream/events/Namespace;>;
java.util.Map<java.lang.String, javax.xml.stream.events.Namespace> mNsByPrefix;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
java.util.Map<java.lang.String, javax.xml.stream.events.Namespace> mNsByURI;
descriptor: Ljava/util/Map;
flags: (0x0000)
Signature: Ljava/util/Map<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
protected void <init>(javax.xml.namespace.NamespaceContext, java.util.List<javax.xml.stream.events.Namespace>);
descriptor: (Ljavax/xml/namespace/NamespaceContext;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.ctc.wstx.util.BaseNsContext.<init>:()V
1: aload 0
aconst_null
putfield com.ctc.wstx.evt.MergedNsContext.mNsByPrefix:Ljava/util/Map;
2: aload 0
aconst_null
putfield com.ctc.wstx.evt.MergedNsContext.mNsByURI:Ljava/util/Map;
3: aload 0
aload 1
putfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
4: aload 2
ifnonnull 7
5: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
6: goto 8
7: StackMap locals: com.ctc.wstx.evt.MergedNsContext javax.xml.namespace.NamespaceContext java.util.List
StackMap stack:
aload 0
aload 2
putfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 9 1 parentCtxt Ljavax/xml/namespace/NamespaceContext;
0 9 2 localNs Ljava/util/List<Ljavax/xml/stream/events/Namespace;>;
Signature: (Ljavax/xml/namespace/NamespaceContext;Ljava/util/List<Ljavax/xml/stream/events/Namespace;>;)V
MethodParameters:
Name Flags
parentCtxt
localNs
public static com.ctc.wstx.util.BaseNsContext construct(javax.xml.namespace.NamespaceContext, java.util.List<javax.xml.stream.events.Namespace>);
descriptor: (Ljavax/xml/namespace/NamespaceContext;Ljava/util/List;)Lcom/ctc/wstx/util/BaseNsContext;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new com.ctc.wstx.evt.MergedNsContext
dup
aload 0
aload 1
invokespecial com.ctc.wstx.evt.MergedNsContext.<init>:(Ljavax/xml/namespace/NamespaceContext;Ljava/util/List;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parentCtxt Ljavax/xml/namespace/NamespaceContext;
0 1 1 localNs Ljava/util/List<Ljavax/xml/stream/events/Namespace;>;
Signature: (Ljavax/xml/namespace/NamespaceContext;Ljava/util/List<Ljavax/xml/stream/events/Namespace;>;)Lcom/ctc/wstx/util/BaseNsContext;
MethodParameters:
Name Flags
parentCtxt
localNs
public java.lang.String doGetNamespaceURI(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNsByPrefix:Ljava/util/Map;
ifnonnull 2
1: aload 0
aload 0
invokevirtual com.ctc.wstx.evt.MergedNsContext.buildByPrefixMap:()Ljava/util/Map;
putfield com.ctc.wstx.evt.MergedNsContext.mNsByPrefix:Ljava/util/Map;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNsByPrefix:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 2
start local 2 3: aload 2
ifnonnull 5
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
ifnull 5
4: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
aload 1
invokeinterface javax.xml.namespace.NamespaceContext.getNamespaceURI:(Ljava/lang/String;)Ljava/lang/String;
areturn
5: StackMap locals: javax.xml.stream.events.Namespace
StackMap stack:
aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack:
6: aload 2
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 8 1 prefix Ljava/lang/String;
3 8 2 ns Ljavax/xml/stream/events/Namespace;
MethodParameters:
Name Flags
prefix
public java.lang.String doGetPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNsByURI:Ljava/util/Map;
ifnonnull 2
1: aload 0
aload 0
invokevirtual com.ctc.wstx.evt.MergedNsContext.buildByNsURIMap:()Ljava/util/Map;
putfield com.ctc.wstx.evt.MergedNsContext.mNsByURI:Ljava/util/Map;
2: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNsByURI:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 2
start local 2 3: aload 2
ifnonnull 5
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
ifnull 5
4: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
aload 1
invokeinterface javax.xml.namespace.NamespaceContext.getPrefix:(Ljava/lang/String;)Ljava/lang/String;
areturn
5: StackMap locals: javax.xml.stream.events.Namespace
StackMap stack:
aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack:
6: aload 2
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
7: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 8 1 nsURI Ljava/lang/String;
3 8 2 ns Ljavax/xml/stream/events/Namespace;
MethodParameters:
Name Flags
nsURI
public java.util.Iterator<java.lang.String> doGetPrefixes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 4
start local 4 3: goto 16
4: StackMap locals: java.util.ArrayList int int
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 5
start local 5 5: aload 5
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
astore 6
start local 6 6: aload 6
ifnonnull 8
7: ldc ""
astore 6
8: StackMap locals: javax.xml.stream.events.Namespace java.lang.String
StackMap stack:
aload 6
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
9: aload 2
ifnonnull 11
10: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
11: StackMap locals:
StackMap stack:
aload 5
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
astore 7
start local 7 12: aload 2
aload 7
ifnonnull 13
ldc ""
goto 14
StackMap locals: com.ctc.wstx.evt.MergedNsContext java.lang.String java.util.ArrayList int int javax.xml.stream.events.Namespace java.lang.String java.lang.String
StackMap stack: java.util.ArrayList
13: aload 7
StackMap locals: com.ctc.wstx.evt.MergedNsContext java.lang.String java.util.ArrayList int int javax.xml.stream.events.Namespace java.lang.String java.lang.String
StackMap stack: java.util.ArrayList java.lang.String
14: invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 5 15: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
16: iload 3
iload 4
if_icmplt 4
end local 4 end local 3 17: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
ifnull 23
18: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mParentCtxt:Ljavax/xml/namespace/NamespaceContext;
aload 1
invokeinterface javax.xml.namespace.NamespaceContext.getPrefixes:(Ljava/lang/String;)Ljava/util/Iterator;
astore 3
start local 3 19: aload 2
ifnonnull 22
20: aload 3
areturn
21: StackMap locals: com.ctc.wstx.evt.MergedNsContext java.lang.String java.util.ArrayList java.util.Iterator
StackMap stack:
aload 2
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
22: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 21
end local 3 23: StackMap locals:
StackMap stack:
aload 2
ifnonnull 25
24: invokestatic com.ctc.wstx.util.DataUtil.emptyIterator:()Ljava/util/Iterator;
areturn
25: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 26 1 nsURI Ljava/lang/String;
1 26 2 l Ljava/util/ArrayList<Ljava/lang/String;>;
2 17 3 i I
3 17 4 len I
5 15 5 ns Ljavax/xml/stream/events/Namespace;
6 15 6 uri Ljava/lang/String;
12 15 7 prefix Ljava/lang/String;
19 23 3 it Ljava/util/Iterator<Ljava/lang/String;>;
Signature: (Ljava/lang/String;)Ljava/util/Iterator<Ljava/lang/String;>;
MethodParameters:
Name Flags
nsURI
public java.util.Iterator<javax.xml.stream.events.Namespace> getNamespaces();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/ctc/wstx/evt/MergedNsContext;
Signature: ()Ljava/util/Iterator<Ljavax/xml/stream/events/Namespace;>;
public void outputNamespaceDeclarations(java.io.Writer);
descriptor: (Ljava/io/Writer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 3
start local 3 2: goto 13
3: StackMap locals: int int
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 4
start local 4 4: aload 1
bipush 32
invokevirtual java.io.Writer.write:(I)V
5: aload 1
ldc "xmlns"
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
6: aload 4
invokeinterface javax.xml.stream.events.Namespace.isDefaultNamespaceDeclaration:()Z
ifne 9
7: aload 1
bipush 58
invokevirtual java.io.Writer.write:(I)V
8: aload 1
aload 4
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
9: StackMap locals: javax.xml.stream.events.Namespace
StackMap stack:
aload 1
ldc "=\""
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
10: aload 1
aload 4
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
11: aload 1
bipush 34
invokevirtual java.io.Writer.write:(I)V
end local 4 12: iinc 2 1
StackMap locals:
StackMap stack:
13: iload 2
iload 3
if_icmplt 3
end local 3 end local 2 14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 15 1 w Ljava/io/Writer;
1 14 2 i I
2 14 3 len I
4 12 4 ns Ljavax/xml/stream/events/Namespace;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
w
public void outputNamespaceDeclarations(javax.xml.stream.XMLStreamWriter);
descriptor: (Ljavax/xml/stream/XMLStreamWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 3
start local 3 2: goto 9
3: StackMap locals: int int
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 4
start local 4 4: aload 4
invokeinterface javax.xml.stream.events.Namespace.isDefaultNamespaceDeclaration:()Z
ifeq 7
5: aload 1
aload 4
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeDefaultNamespace:(Ljava/lang/String;)V
6: goto 8
7: StackMap locals: javax.xml.stream.events.Namespace
StackMap stack:
aload 1
aload 4
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
aload 4
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
invokeinterface javax.xml.stream.XMLStreamWriter.writeNamespace:(Ljava/lang/String;Ljava/lang/String;)V
end local 4 8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 3
if_icmplt 3
end local 3 end local 2 10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/ctc/wstx/evt/MergedNsContext;
0 11 1 w Ljavax/xml/stream/XMLStreamWriter;
1 10 2 i I
2 10 3 len I
4 8 4 ns Ljavax/xml/stream/events/Namespace;
Exceptions:
throws javax.xml.stream.XMLStreamException
MethodParameters:
Name Flags
w
private java.util.Map<java.lang.String, javax.xml.stream.events.Namespace> buildByPrefixMap();
descriptor: ()Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
start local 1 1: iload 1
ifne 3
2: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
3: StackMap locals: int
StackMap stack:
new java.util.LinkedHashMap
dup
iconst_1
iload 1
iadd
iload 1
iconst_1
ishr
iadd
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 12
6: StackMap locals: java.util.LinkedHashMap int
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 4
start local 4 7: aload 4
invokeinterface javax.xml.stream.events.Namespace.getPrefix:()Ljava/lang/String;
astore 5
start local 5 8: aload 5
ifnonnull 10
9: ldc ""
astore 5
10: StackMap locals: javax.xml.stream.events.Namespace java.lang.String
StackMap stack:
aload 2
aload 5
aload 4
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 1
if_icmplt 6
end local 3 13: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/ctc/wstx/evt/MergedNsContext;
1 14 1 len I
4 14 2 m Ljava/util/LinkedHashMap<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
5 13 3 i I
7 11 4 ns Ljavax/xml/stream/events/Namespace;
8 11 5 prefix Ljava/lang/String;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
private java.util.Map<java.lang.String, javax.xml.stream.events.Namespace> buildByNsURIMap();
descriptor: ()Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 1
start local 1 1: iload 1
ifne 3
2: invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
3: StackMap locals: int
StackMap stack:
new java.util.LinkedHashMap
dup
iconst_1
iload 1
iadd
iload 1
iconst_1
ishr
iadd
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 12
6: StackMap locals: java.util.LinkedHashMap int
StackMap stack:
aload 0
getfield com.ctc.wstx.evt.MergedNsContext.mNamespaces:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast javax.xml.stream.events.Namespace
astore 4
start local 4 7: aload 4
invokeinterface javax.xml.stream.events.Namespace.getNamespaceURI:()Ljava/lang/String;
astore 5
start local 5 8: aload 5
ifnonnull 10
9: ldc ""
astore 5
10: StackMap locals: javax.xml.stream.events.Namespace java.lang.String
StackMap stack:
aload 2
aload 5
aload 4
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 1
if_icmplt 6
end local 3 13: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/ctc/wstx/evt/MergedNsContext;
1 14 1 len I
4 14 2 m Ljava/util/LinkedHashMap<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
5 13 3 i I
7 11 4 ns Ljavax/xml/stream/events/Namespace;
8 11 5 uri Ljava/lang/String;
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljavax/xml/stream/events/Namespace;>;
}
SourceFile: "MergedNsContext.java"