class oadd.org.apache.commons.configuration.XMLListReference extends java.lang.Object
{
private final org.w3c.dom.Element element;
private void <init>(org.w3c.dom.Element)
{
oadd.org.apache.commons.configuration.XMLListReference v;
org.w3c.dom.Element v;
v := @this: oadd.org.apache.commons.configuration.XMLListReference;
v := @parameter: org.w3c.dom.Element;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<oadd.org.apache.commons.configuration.XMLListReference: org.w3c.dom.Element element> = v;
return;
}
public org.w3c.dom.Element getElement()
{
oadd.org.apache.commons.configuration.XMLListReference v;
org.w3c.dom.Element v;
v := @this: oadd.org.apache.commons.configuration.XMLListReference;
v = v.<oadd.org.apache.commons.configuration.XMLListReference: org.w3c.dom.Element element>;
return v;
}
public static void assignListReference(java.util.Map, oadd.org.apache.commons.configuration.tree.ImmutableNode, org.w3c.dom.Element)
{
oadd.org.apache.commons.configuration.XMLListReference v;
org.w3c.dom.Element v;
java.util.Map v;
oadd.org.apache.commons.configuration.tree.ImmutableNode v;
v := @parameter: java.util.Map;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: org.w3c.dom.Element;
if v == null goto label;
v = new oadd.org.apache.commons.configuration.XMLListReference;
specialinvoke v.<oadd.org.apache.commons.configuration.XMLListReference: void <init>(org.w3c.dom.Element)>(v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
label:
return;
}
public static boolean isListNode(oadd.org.apache.commons.configuration.tree.ImmutableNode, oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler)
{
oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler v;
int v, v;
oadd.org.apache.commons.configuration.tree.ImmutableNode v;
java.lang.Object v, v;
boolean v, v, v;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler;
v = staticinvoke <oadd.org.apache.commons.configuration.XMLListReference: boolean hasListReference(oadd.org.apache.commons.configuration.tree.ImmutableNode,oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler)>(v, v);
if v == 0 goto label;
return 1;
label:
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getParent(java.lang.Object)>(v);
if v == null goto label;
v = 0;
label:
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: int getChildrenCount(java.lang.Object,java.lang.String)>(v, null);
if v >= v goto label;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getChild(java.lang.Object,int)>(v, v);
v = staticinvoke <oadd.org.apache.commons.configuration.XMLListReference: boolean hasListReference(oadd.org.apache.commons.configuration.tree.ImmutableNode,oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler)>(v, v);
if v == 0 goto label;
v = staticinvoke <oadd.org.apache.commons.configuration.XMLListReference: boolean nameEquals(oadd.org.apache.commons.configuration.tree.ImmutableNode,oadd.org.apache.commons.configuration.tree.ImmutableNode)>(v, v);
if v == 0 goto label;
return 1;
label:
v = v + 1;
goto label;
label:
return 0;
}
public static boolean isFirstListItem(oadd.org.apache.commons.configuration.tree.ImmutableNode, oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler)
{
oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler v;
int v;
oadd.org.apache.commons.configuration.tree.ImmutableNode v, v;
java.lang.Object v, v;
boolean v, v;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getParent(java.lang.Object)>(v);
v = null;
v = 0;
label:
if v != null goto label;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getChild(java.lang.Object,int)>(v, v);
v = staticinvoke <oadd.org.apache.commons.configuration.XMLListReference: boolean nameEquals(oadd.org.apache.commons.configuration.tree.ImmutableNode,oadd.org.apache.commons.configuration.tree.ImmutableNode)>(v, v);
if v == 0 goto label;
v = v;
label:
v = v + 1;
goto label;
label:
if v != v goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public static java.lang.String listValue(oadd.org.apache.commons.configuration.tree.ImmutableNode, oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler, oadd.org.apache.commons.configuration.convert.ListDelimiterHandler)
{
oadd.org.apache.commons.configuration.convert.ValueTransformer v;
java.util.ArrayList v;
int v;
java.lang.String v, v;
boolean v;
java.lang.UnsupportedOperationException v;
java.util.Iterator v;
oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler v;
oadd.org.apache.commons.configuration.convert.ListDelimiterHandler v;
java.util.List v;
oadd.org.apache.commons.configuration.ex.ConfigurationRuntimeException v;
oadd.org.apache.commons.configuration.tree.ImmutableNode v;
java.lang.Object v, v, v, v;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler;
v := @parameter: oadd.org.apache.commons.configuration.convert.ListDelimiterHandler;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getParent(java.lang.Object)>(v);
v = virtualinvoke v.<oadd.org.apache.commons.configuration.tree.ImmutableNode: java.lang.String getNodeName()>();
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.util.List getChildren(java.lang.Object,java.lang.String)>(v, v);
v = new java.util.ArrayList;
v = interfaceinvoke v.<java.util.List: int size()>();
specialinvoke v.<java.util.ArrayList: void <init>(int)>(v);
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = virtualinvoke v.<oadd.org.apache.commons.configuration.tree.ImmutableNode: java.lang.Object getValue()>();
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = <oadd.org.apache.commons.configuration.convert.DefaultListDelimiterHandler: oadd.org.apache.commons.configuration.convert.ValueTransformer NOOP_TRANSFORMER>;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.convert.ListDelimiterHandler: java.lang.Object escapeList(java.util.List,oadd.org.apache.commons.configuration.convert.ValueTransformer)>(v, v);
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
label:
return v;
label:
v := @caughtexception;
v = new oadd.org.apache.commons.configuration.ex.ConfigurationRuntimeException;
specialinvoke v.<oadd.org.apache.commons.configuration.ex.ConfigurationRuntimeException: void <init>(java.lang.String,java.lang.Throwable)>("List handling not supported by the current ListDelimiterHandler! Make sure that the same delimiter handler is used for loading and saving the configuration.", v);
throw v;
catch java.lang.UnsupportedOperationException from label to label with label;
}
private static boolean hasListReference(oadd.org.apache.commons.configuration.tree.ImmutableNode, oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler)
{
oadd.org.apache.commons.configuration.tree.ImmutableNode v;
java.lang.Object v;
oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler v;
boolean v;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler;
v = interfaceinvoke v.<oadd.org.apache.commons.configuration.tree.ReferenceNodeHandler: java.lang.Object getReference(oadd.org.apache.commons.configuration.tree.ImmutableNode)>(v);
v = v instanceof oadd.org.apache.commons.configuration.XMLListReference;
return v;
}
private static boolean nameEquals(oadd.org.apache.commons.configuration.tree.ImmutableNode, oadd.org.apache.commons.configuration.tree.ImmutableNode)
{
oadd.org.apache.commons.configuration.tree.ImmutableNode v, v;
java.lang.String v, v;
boolean v;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v := @parameter: oadd.org.apache.commons.configuration.tree.ImmutableNode;
v = virtualinvoke v.<oadd.org.apache.commons.configuration.tree.ImmutableNode: java.lang.String getNodeName()>();
v = virtualinvoke v.<oadd.org.apache.commons.configuration.tree.ImmutableNode: java.lang.String getNodeName()>();
v = staticinvoke <oadd.org.apache.commons.lang.StringUtils: boolean equals(java.lang.CharSequence,java.lang.CharSequence)>(v, v);
return v;
}
}