public class org.apache.avalon.framework.configuration.ConfigurationUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.avalon.framework.configuration.ConfigurationUtil
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/avalon/framework/configuration/ConfigurationUtil;
public static org.apache.avalon.framework.configuration.Configuration toConfiguration(org.w3c.dom.Element);
descriptor: (Lorg/w3c/dom/Element;)Lorg/apache/avalon/framework/configuration/Configuration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=1
start local 0 0: new org.apache.avalon.framework.configuration.DefaultConfiguration
dup
aload 0
invokeinterface org.w3c.dom.Element.getNodeName:()Ljava/lang/String;
ldc "dom-created"
invokespecial org.apache.avalon.framework.configuration.DefaultConfiguration.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: astore 1
start local 1 2: aload 0
invokeinterface org.w3c.dom.Element.getAttributes:()Lorg/w3c/dom/NamedNodeMap;
astore 2
start local 2 3: aload 2
invokeinterface org.w3c.dom.NamedNodeMap.getLength:()I
istore 3
start local 3 4: iconst_0
istore 4
start local 4 5: goto 11
6: StackMap locals: org.w3c.dom.Element org.apache.avalon.framework.configuration.DefaultConfiguration org.w3c.dom.NamedNodeMap int int
StackMap stack:
aload 2
iload 4
invokeinterface org.w3c.dom.NamedNodeMap.item:(I)Lorg/w3c/dom/Node;
astore 5
start local 5 7: aload 5
invokeinterface org.w3c.dom.Node.getNodeName:()Ljava/lang/String;
astore 6
start local 6 8: aload 5
invokeinterface org.w3c.dom.Node.getNodeValue:()Ljava/lang/String;
astore 7
start local 7 9: aload 1
aload 6
aload 7
invokevirtual org.apache.avalon.framework.configuration.DefaultConfiguration.setAttribute:(Ljava/lang/String;Ljava/lang/String;)V
end local 7 end local 6 end local 5 10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 3
if_icmplt 6
end local 4 12: iconst_0
istore 4
start local 4 13: ldc ""
astore 5
start local 5 14: aload 0
invokeinterface org.w3c.dom.Element.getChildNodes:()Lorg/w3c/dom/NodeList;
astore 6
start local 6 15: aload 6
invokeinterface org.w3c.dom.NodeList.getLength:()I
istore 7
start local 7 16: iconst_0
istore 8
start local 8 17: goto 28
18: StackMap locals: org.w3c.dom.Element org.apache.avalon.framework.configuration.DefaultConfiguration org.w3c.dom.NamedNodeMap int int java.lang.String org.w3c.dom.NodeList int int
StackMap stack:
aload 6
iload 8
invokeinterface org.w3c.dom.NodeList.item:(I)Lorg/w3c/dom/Node;
astore 9
start local 9 19: aload 9
instanceof org.w3c.dom.Element
ifeq 23
20: aload 9
checkcast org.w3c.dom.Element
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.toConfiguration:(Lorg/w3c/dom/Element;)Lorg/apache/avalon/framework/configuration/Configuration;
astore 10
start local 10 21: aload 1
aload 10
invokevirtual org.apache.avalon.framework.configuration.DefaultConfiguration.addChild:(Lorg/apache/avalon/framework/configuration/Configuration;)V
end local 10 22: goto 27
23: StackMap locals: org.w3c.dom.Node
StackMap stack:
aload 9
instanceof org.w3c.dom.CharacterData
ifeq 27
24: aload 9
checkcast org.w3c.dom.CharacterData
astore 10
start local 10 25: new java.lang.StringBuilder
dup
aload 5
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10
invokeinterface org.w3c.dom.CharacterData.getData:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
26: iconst_1
istore 4
end local 10 end local 9 27: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
28: iload 8
iload 7
if_icmplt 18
end local 8 29: iload 4
ifeq 31
30: aload 1
aload 5
invokevirtual org.apache.avalon.framework.configuration.DefaultConfiguration.setValue:(Ljava/lang/String;)V
31: StackMap locals:
StackMap stack:
aload 1
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 element Lorg/w3c/dom/Element;
2 32 1 configuration Lorg/apache/avalon/framework/configuration/DefaultConfiguration;
3 32 2 attributes Lorg/w3c/dom/NamedNodeMap;
4 32 3 length I
5 12 4 i I
7 10 5 node Lorg/w3c/dom/Node;
8 10 6 name Ljava/lang/String;
9 10 7 value Ljava/lang/String;
13 32 4 flag Z
14 32 5 content Ljava/lang/String;
15 32 6 nodes Lorg/w3c/dom/NodeList;
16 32 7 count I
17 29 8 i I
19 27 9 node Lorg/w3c/dom/Node;
21 22 10 child Lorg/apache/avalon/framework/configuration/Configuration;
25 27 10 data Lorg/w3c/dom/CharacterData;
MethodParameters:
Name Flags
element final
public static org.w3c.dom.Element toElement(org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;)Lorg/w3c/dom/Element;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic javax.xml.parsers.DocumentBuilderFactory.newInstance:()Ljavax/xml/parsers/DocumentBuilderFactory;
astore 1
start local 1 1: aload 1
invokevirtual javax.xml.parsers.DocumentBuilderFactory.newDocumentBuilder:()Ljavax/xml/parsers/DocumentBuilder;
astore 2
start local 2 2: aload 2
invokevirtual javax.xml.parsers.DocumentBuilder.newDocument:()Lorg/w3c/dom/Document;
astore 3
start local 3 3: aload 3
aload 0
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.createElement:(Lorg/w3c/dom/Document;Lorg/apache/avalon/framework/configuration/Configuration;)Lorg/w3c/dom/Element;
4: areturn
end local 3 end local 2 end local 1 5: StackMap locals:
StackMap stack: javax.xml.parsers.ParserConfigurationException
astore 1
start local 1 6: new java.lang.IllegalStateException
dup
aload 1
invokevirtual javax.xml.parsers.ParserConfigurationException.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 configuration Lorg/apache/avalon/framework/configuration/Configuration;
1 5 1 factory Ljavax/xml/parsers/DocumentBuilderFactory;
2 5 2 builder Ljavax/xml/parsers/DocumentBuilder;
3 5 3 document Lorg/w3c/dom/Document;
6 7 1 pce Ljavax/xml/parsers/ParserConfigurationException;
Exception table:
from to target type
0 4 5 Class javax.xml.parsers.ParserConfigurationException
MethodParameters:
Name Flags
configuration final
public static java.lang.String toString(org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: new org.apache.avalon.framework.configuration.DefaultConfigurationSerializer
dup
invokespecial org.apache.avalon.framework.configuration.DefaultConfigurationSerializer.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual org.apache.avalon.framework.configuration.DefaultConfigurationSerializer.serialize:(Lorg/apache/avalon/framework/configuration/Configuration;)Ljava/lang/String;
2: areturn
3: StackMap locals: org.apache.avalon.framework.configuration.Configuration org.apache.avalon.framework.configuration.DefaultConfigurationSerializer
StackMap stack: java.lang.Exception
astore 2
start local 2 4: aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 configuration Lorg/apache/avalon/framework/configuration/Configuration;
1 5 1 ser Lorg/apache/avalon/framework/configuration/DefaultConfigurationSerializer;
4 5 2 e Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
configuration final
public static boolean equals(org.apache.avalon.framework.configuration.Configuration, org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.apache.avalon.framework.configuration.Configuration.getName:()Ljava/lang/String;
aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
aload 0
aload 1
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.areValuesEqual:(Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
ifeq 3
1: aload 0
aload 1
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.areAttributesEqual:(Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
ifeq 3
aload 0
aload 1
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.areChildrenEqual:(Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 c1 Lorg/apache/avalon/framework/configuration/Configuration;
0 4 1 c2 Lorg/apache/avalon/framework/configuration/Configuration;
MethodParameters:
Name Flags
c1 final
c2 final
private static boolean areChildrenEqual(org.apache.avalon.framework.configuration.Configuration, org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.apache.avalon.framework.configuration.Configuration.getChildren:()[Lorg/apache/avalon/framework/configuration/Configuration;
astore 2
start local 2 1: new java.util.ArrayList
dup
aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getChildren:()[Lorg/apache/avalon/framework/configuration/Configuration;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 2: aload 2
arraylength
aload 3
invokevirtual java.util.ArrayList.size:()I
if_icmpeq 4
3: iconst_0
ireturn
4: StackMap locals: org.apache.avalon.framework.configuration.Configuration[] java.util.ArrayList
StackMap stack:
iconst_0
istore 4
start local 4 5: goto 9
6: StackMap locals: int
StackMap stack:
aload 2
iload 4
aaload
aload 3
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.findMatchingChild:(Lorg/apache/avalon/framework/configuration/Configuration;Ljava/util/ArrayList;)Z
ifne 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
aload 2
arraylength
if_icmplt 6
end local 4 10: aload 3
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 11
iconst_1
goto 12
StackMap locals:
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 c1 Lorg/apache/avalon/framework/configuration/Configuration;
0 13 1 c2 Lorg/apache/avalon/framework/configuration/Configuration;
1 13 2 kids1 [Lorg/apache/avalon/framework/configuration/Configuration;
2 13 3 kids2 Ljava/util/ArrayList;
5 10 4 i I
MethodParameters:
Name Flags
c1 final
c2 final
private static boolean findMatchingChild(org.apache.avalon.framework.configuration.Configuration, java.util.ArrayList);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;Ljava/util/ArrayList;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 0
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.avalon.framework.configuration.Configuration
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.equals:(Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
ifeq 5
3: aload 2
invokeinterface java.util.Iterator.remove:()V
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 c Lorg/apache/avalon/framework/configuration/Configuration;
0 7 1 matchAgainst Ljava/util/ArrayList;
1 7 2 i Ljava/util/Iterator;
MethodParameters:
Name Flags
c final
matchAgainst final
private static boolean areAttributesEqual(org.apache.avalon.framework.configuration.Configuration, org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttributeNames:()[Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttributeNames:()[Ljava/lang/String;
astore 3
start local 3 2: aload 2
arraylength
aload 3
arraylength
if_icmpeq 4
3: iconst_0
ireturn
4: StackMap locals: java.lang.String[] java.lang.String[]
StackMap stack:
iconst_0
istore 4
start local 4 5: goto 12
6: StackMap locals: int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 7: aload 0
aload 5
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 8: aload 1
aload 5
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 9: aload 6
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
10: iconst_0
ireturn
end local 7 end local 6 end local 5 11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
aload 2
arraylength
if_icmplt 6
end local 4 13: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 c1 Lorg/apache/avalon/framework/configuration/Configuration;
0 14 1 c2 Lorg/apache/avalon/framework/configuration/Configuration;
1 14 2 names1 [Ljava/lang/String;
2 14 3 names2 [Ljava/lang/String;
5 13 4 i I
7 11 5 name Ljava/lang/String;
8 11 6 value1 Ljava/lang/String;
9 11 7 value2 Ljava/lang/String;
MethodParameters:
Name Flags
c1 final
c2 final
private static boolean areValuesEqual(org.apache.avalon.framework.configuration.Configuration, org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/apache/avalon/framework/configuration/Configuration;Lorg/apache/avalon/framework/configuration/Configuration;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 1
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 2
ifnonnull 3
aload 3
ifnull 5
3: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 2
ifnull 4
aload 2
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 c1 Lorg/apache/avalon/framework/configuration/Configuration;
0 6 1 c2 Lorg/apache/avalon/framework/configuration/Configuration;
1 6 2 value1 Ljava/lang/String;
2 6 3 value2 Ljava/lang/String;
MethodParameters:
Name Flags
c1 final
c2 final
private static org.w3c.dom.Element createElement(org.w3c.dom.Document, org.apache.avalon.framework.configuration.Configuration);
descriptor: (Lorg/w3c/dom/Document;Lorg/apache/avalon/framework/configuration/Configuration;)Lorg/w3c/dom/Element;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getName:()Ljava/lang/String;
invokeinterface org.w3c.dom.Document.createElement:(Ljava/lang/String;)Lorg/w3c/dom/Element;
astore 2
start local 2 1: aload 1
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 3
ifnull 5
3: aload 0
aload 3
invokeinterface org.w3c.dom.Document.createTextNode:(Ljava/lang/String;)Lorg/w3c/dom/Text;
astore 4
start local 4 4: aload 2
aload 4
invokeinterface org.w3c.dom.Element.appendChild:(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;
pop
end local 4 5: StackMap locals: org.w3c.dom.Element java.lang.String
StackMap stack:
aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttributeNames:()[Ljava/lang/String;
astore 4
start local 4 6: iconst_0
istore 5
start local 5 7: goto 12
8: StackMap locals: java.lang.String[] int
StackMap stack:
aload 4
iload 5
aaload
astore 6
start local 6 9: aload 1
aload 6
aconst_null
invokeinterface org.apache.avalon.framework.configuration.Configuration.getAttribute:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 10: aload 2
aload 6
aload 7
invokeinterface org.w3c.dom.Element.setAttribute:(Ljava/lang/String;Ljava/lang/String;)V
end local 7 end local 6 11: iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
aload 4
arraylength
if_icmplt 8
end local 5 13: aload 1
invokeinterface org.apache.avalon.framework.configuration.Configuration.getChildren:()[Lorg/apache/avalon/framework/configuration/Configuration;
astore 5
start local 5 14: iconst_0
istore 6
start local 6 15: goto 19
16: StackMap locals: org.w3c.dom.Document org.apache.avalon.framework.configuration.Configuration org.w3c.dom.Element java.lang.String java.lang.String[] org.apache.avalon.framework.configuration.Configuration[] int
StackMap stack:
aload 0
aload 5
iload 6
aaload
invokestatic org.apache.avalon.framework.configuration.ConfigurationUtil.createElement:(Lorg/w3c/dom/Document;Lorg/apache/avalon/framework/configuration/Configuration;)Lorg/w3c/dom/Element;
astore 7
start local 7 17: aload 2
aload 7
invokeinterface org.w3c.dom.Element.appendChild:(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;
pop
end local 7 18: iinc 6 1
StackMap locals:
StackMap stack:
19: iload 6
aload 5
arraylength
if_icmplt 16
end local 6 20: aload 2
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 document Lorg/w3c/dom/Document;
0 21 1 configuration Lorg/apache/avalon/framework/configuration/Configuration;
1 21 2 element Lorg/w3c/dom/Element;
2 21 3 content Ljava/lang/String;
4 5 4 child Lorg/w3c/dom/Text;
6 21 4 names [Ljava/lang/String;
7 13 5 i I
9 11 6 name Ljava/lang/String;
10 11 7 value Ljava/lang/String;
14 21 5 children [Lorg/apache/avalon/framework/configuration/Configuration;
15 20 6 i I
17 18 7 child Lorg/w3c/dom/Element;
MethodParameters:
Name Flags
document final
configuration final
}
SourceFile: "ConfigurationUtil.java"