public final class org.apache.batik.dom.util.XMLSupport implements org.apache.batik.constants.XMLConstants
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.batik.dom.util.XMLSupport
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/batik/dom/util/XMLSupport;
public static java.lang.String getXMLLang(org.w3c.dom.Element);
descriptor: (Lorg/w3c/dom/Element;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ldc "http://www.w3.org/XML/1998/namespace"
ldc "lang"
invokeinterface org.w3c.dom.Element.getAttributeNodeNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface org.w3c.dom.Attr.getNodeValue:()Ljava/lang/String;
areturn
3: StackMap locals: org.w3c.dom.Attr
StackMap stack:
aload 0
invokeinterface org.w3c.dom.Element.getParentNode:()Lorg/w3c/dom/Node;
astore 2
start local 2 4: goto 12
5: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 2
invokeinterface org.w3c.dom.Node.getNodeType:()S
iconst_1
if_icmpne 11
6: aload 2
checkcast org.w3c.dom.Element
ldc "http://www.w3.org/XML/1998/namespace"
7: ldc "lang"
8: invokeinterface org.w3c.dom.Element.getAttributeNodeNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;
astore 1
9: aload 1
ifnull 11
10: aload 1
invokeinterface org.w3c.dom.Attr.getNodeValue:()Ljava/lang/String;
areturn
11: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.w3c.dom.Node.getParentNode:()Lorg/w3c/dom/Node;
astore 2
StackMap locals:
StackMap stack:
12: aload 2
ifnonnull 5
end local 2 13: ldc "en"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 elt Lorg/w3c/dom/Element;
1 14 1 attr Lorg/w3c/dom/Attr;
4 13 2 n Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
elt
public static java.lang.String getXMLSpace(org.w3c.dom.Element);
descriptor: (Lorg/w3c/dom/Element;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
ldc "http://www.w3.org/XML/1998/namespace"
ldc "space"
invokeinterface org.w3c.dom.Element.getAttributeNodeNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokeinterface org.w3c.dom.Attr.getNodeValue:()Ljava/lang/String;
areturn
3: StackMap locals: org.w3c.dom.Attr
StackMap stack:
aload 0
invokeinterface org.w3c.dom.Element.getParentNode:()Lorg/w3c/dom/Node;
astore 2
start local 2 4: goto 12
5: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 2
invokeinterface org.w3c.dom.Node.getNodeType:()S
iconst_1
if_icmpne 11
6: aload 2
checkcast org.w3c.dom.Element
ldc "http://www.w3.org/XML/1998/namespace"
7: ldc "space"
8: invokeinterface org.w3c.dom.Element.getAttributeNodeNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Attr;
astore 1
9: aload 1
ifnull 11
10: aload 1
invokeinterface org.w3c.dom.Attr.getNodeValue:()Ljava/lang/String;
areturn
11: StackMap locals:
StackMap stack:
aload 2
invokeinterface org.w3c.dom.Node.getParentNode:()Lorg/w3c/dom/Node;
astore 2
StackMap locals:
StackMap stack:
12: aload 2
ifnonnull 5
end local 2 13: ldc "default"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 elt Lorg/w3c/dom/Element;
1 14 1 attr Lorg/w3c/dom/Attr;
4 13 2 n Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
elt
public static java.lang.String defaultXMLSpace(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: new java.lang.StringBuffer
dup
iload 1
invokespecial java.lang.StringBuffer.<init>:(I)V
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 16
5: StackMap locals: java.lang.String int java.lang.StringBuffer int int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 6: iload 5
lookupswitch { // 4
9: 9
10: 7
13: 7
32: 9
default: 13
}
7: StackMap locals: int
StackMap stack:
iconst_0
istore 3
8: goto 15
9: StackMap locals:
StackMap stack:
iload 3
ifne 15
10: aload 2
bipush 32
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
11: iconst_1
istore 3
12: goto 15
13: StackMap locals:
StackMap stack:
aload 2
iload 5
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
14: iconst_0
istore 3
end local 5 15: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
16: iload 4
iload 1
if_icmplt 5
end local 4 17: aload 2
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 data Ljava/lang/String;
1 18 1 nChars I
2 18 2 result Ljava/lang/StringBuffer;
3 18 3 space Z
4 17 4 i I
6 15 5 c C
MethodParameters:
Name Flags
data
public static java.lang.String preserveXMLSpace(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: new java.lang.StringBuffer
dup
iload 1
invokespecial java.lang.StringBuffer.<init>:(I)V
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 10
4: StackMap locals: int java.lang.StringBuffer int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: iload 4
tableswitch { // 9 - 13
9: 6
10: 6
11: 8
12: 8
13: 6
default: 8
}
6: StackMap locals: int
StackMap stack:
aload 2
bipush 32
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
7: goto 9
8: StackMap locals:
StackMap stack:
aload 2
iload 4
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 4
end local 3 11: aload 2
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 data Ljava/lang/String;
1 12 1 nChars I
2 12 2 result Ljava/lang/StringBuffer;
3 11 3 i I
5 9 4 c C
MethodParameters:
Name Flags
data
}
SourceFile: "XMLSupport.java"