public class com.sun.tools.internal.xjc.util.DOMUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.internal.xjc.util.DOMUtils
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/internal/xjc/util/DOMUtils;
public static org.w3c.dom.Element getFirstChildElement(org.w3c.dom.Element, java.lang.String, java.lang.String);
descriptor: (Lorg/w3c/dom/Element;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface org.w3c.dom.Element.getChildNodes:()Lorg/w3c/dom/NodeList;
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 9
3: StackMap locals: org.w3c.dom.NodeList int
StackMap stack:
aload 3
iload 4
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
astore 5
start local 5 4: aload 5
instanceof org.w3c.dom.Element
ifne 5
goto 8
5: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 1
aload 5
invokeinterface org.w3c.dom.Node.getNamespaceURI:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
6: aload 2
aload 5
invokeinterface org.w3c.dom.Node.getLocalName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 5
checkcast org.w3c.dom.Element
areturn
end local 5 8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 3
invokeinterface org.w3c.dom.NodeList.getLength:()I
if_icmplt 3
end local 4 10: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 parent Lorg/w3c/dom/Element;
0 11 1 nsUri Ljava/lang/String;
0 11 2 localPart Ljava/lang/String;
1 11 3 children Lorg/w3c/dom/NodeList;
2 10 4 i I
4 8 5 item Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
parent
nsUri
localPart
public static org.w3c.dom.Element[] getChildElements(org.w3c.dom.Element, java.lang.String, java.lang.String);
descriptor: (Lorg/w3c/dom/Element;Ljava/lang/String;Ljava/lang/String;)[Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: aload 0
invokeinterface org.w3c.dom.Element.getChildNodes:()Lorg/w3c/dom/NodeList;
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 10
4: StackMap locals: java.util.ArrayList org.w3c.dom.NodeList int
StackMap stack:
aload 4
iload 5
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
astore 6
start local 6 5: aload 6
instanceof org.w3c.dom.Element
ifne 6
goto 9
6: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 1
aload 6
invokeinterface org.w3c.dom.Node.getNamespaceURI:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 2
aload 6
invokeinterface org.w3c.dom.Node.getLocalName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: aload 3
aload 6
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 6 9: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
10: iload 5
aload 4
invokeinterface org.w3c.dom.NodeList.getLength:()I
if_icmplt 4
end local 5 11: aload 3
aload 3
invokevirtual java.util.ArrayList.size:()I
anewarray org.w3c.dom.Element
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.w3c.dom.Element[]
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 parent Lorg/w3c/dom/Element;
0 12 1 nsUri Ljava/lang/String;
0 12 2 localPart Ljava/lang/String;
1 12 3 a Ljava/util/ArrayList;
2 12 4 children Lorg/w3c/dom/NodeList;
3 11 5 i I
5 9 6 item Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
parent
nsUri
localPart
public static org.w3c.dom.Element[] getChildElements(org.w3c.dom.Element);
descriptor: (Lorg/w3c/dom/Element;)[Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokeinterface org.w3c.dom.Element.getChildNodes:()Lorg/w3c/dom/NodeList;
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: java.util.ArrayList org.w3c.dom.NodeList int
StackMap stack:
aload 2
iload 3
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
astore 4
start local 4 5: aload 4
instanceof org.w3c.dom.Element
ifne 6
goto 7
6: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 1
aload 4
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
invokeinterface org.w3c.dom.NodeList.getLength:()I
if_icmplt 4
end local 3 9: aload 1
aload 1
invokevirtual java.util.ArrayList.size:()I
anewarray org.w3c.dom.Element
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.w3c.dom.Element[]
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 parent Lorg/w3c/dom/Element;
1 10 1 a Ljava/util/ArrayList;
2 10 2 children Lorg/w3c/dom/NodeList;
3 9 3 i I
5 7 4 item Lorg/w3c/dom/Node;
MethodParameters:
Name Flags
parent
public static java.lang.String getElementText(org.w3c.dom.Element);
descriptor: (Lorg/w3c/dom/Element;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokeinterface org.w3c.dom.Element.getFirstChild:()Lorg/w3c/dom/Node;
astore 1
start local 1 1: goto 5
2: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 1
invokeinterface org.w3c.dom.Node.getNodeType:()S
iconst_3
if_icmpne 4
3: aload 1
invokeinterface org.w3c.dom.Node.getNodeValue:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.w3c.dom.Node.getNextSibling:()Lorg/w3c/dom/Node;
astore 1
5: StackMap locals:
StackMap stack:
aload 1
ifnonnull 2
end local 1 6: aload 0
invokeinterface org.w3c.dom.Element.getNodeValue:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 element Lorg/w3c/dom/Element;
1 6 1 child Lorg/w3c/dom/Node;
Exceptions:
throws org.w3c.dom.DOMException
MethodParameters:
Name Flags
element
public static org.w3c.dom.Element getElement(org.w3c.dom.Document, java.lang.String);
descriptor: (Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.w3c.dom.Document.getElementsByTagName:(Ljava/lang/String;)Lorg/w3c/dom/NodeList;
astore 2
start local 2 1: aload 2
invokeinterface org.w3c.dom.NodeList.getLength:()I
iconst_1
if_icmplt 3
2: aload 2
iconst_0
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
checkcast org.w3c.dom.Element
areturn
3: StackMap locals: org.w3c.dom.NodeList
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parent Lorg/w3c/dom/Document;
0 4 1 name Ljava/lang/String;
1 4 2 children Lorg/w3c/dom/NodeList;
MethodParameters:
Name Flags
parent
name
public static org.w3c.dom.Element getElement(org.w3c.dom.Document, javax.xml.namespace.QName);
descriptor: (Lorg/w3c/dom/Document;Ljavax/xml/namespace/QName;)Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual javax.xml.namespace.QName.getNamespaceURI:()Ljava/lang/String;
aload 1
invokevirtual javax.xml.namespace.QName.getLocalPart:()Ljava/lang/String;
invokeinterface org.w3c.dom.Document.getElementsByTagNameNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/NodeList;
astore 2
start local 2 1: aload 2
invokeinterface org.w3c.dom.NodeList.getLength:()I
iconst_1
if_icmplt 3
2: aload 2
iconst_0
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
checkcast org.w3c.dom.Element
areturn
3: StackMap locals: org.w3c.dom.NodeList
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parent Lorg/w3c/dom/Document;
0 4 1 qname Ljavax/xml/namespace/QName;
1 4 2 children Lorg/w3c/dom/NodeList;
MethodParameters:
Name Flags
parent
qname
public static org.w3c.dom.Element getElement(org.w3c.dom.Document, java.lang.String, java.lang.String);
descriptor: (Lorg/w3c/dom/Document;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokeinterface org.w3c.dom.Document.getElementsByTagNameNS:(Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/NodeList;
astore 3
start local 3 1: aload 3
invokeinterface org.w3c.dom.NodeList.getLength:()I
iconst_1
if_icmplt 3
2: aload 3
iconst_0
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
checkcast org.w3c.dom.Element
areturn
3: StackMap locals: org.w3c.dom.NodeList
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parent Lorg/w3c/dom/Document;
0 4 1 namespaceURI Ljava/lang/String;
0 4 2 localName Ljava/lang/String;
1 4 3 children Lorg/w3c/dom/NodeList;
MethodParameters:
Name Flags
parent
namespaceURI
localName
public static org.w3c.dom.Element[] getElements(org.w3c.dom.NodeList);
descriptor: (Lorg/w3c/dom/NodeList;)[Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 12
4: StackMap locals: org.w3c.dom.Element[] int int
StackMap stack:
aload 1
ifnonnull 6
5: iconst_1
anewarray org.w3c.dom.Element
astore 1
6: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 2
if_icmpne 10
7: aload 1
arraylength
iconst_1
iadd
anewarray org.w3c.dom.Element
astore 4
start local 4 8: aload 1
iconst_0
aload 4
iconst_0
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
9: aload 4
astore 1
end local 4 10: StackMap locals:
StackMap stack:
aload 1
iload 2
iinc 2 1
aload 0
iload 3
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
checkcast org.w3c.dom.Element
aastore
11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
aload 0
invokeinterface org.w3c.dom.NodeList.getLength:()I
if_icmplt 4
end local 3 13: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 children Lorg/w3c/dom/NodeList;
1 14 1 elements [Lorg/w3c/dom/Element;
2 14 2 len I
3 13 3 i I
8 10 4 buf [Lorg/w3c/dom/Element;
MethodParameters:
Name Flags
children
}
SourceFile: "DOMUtils.java"