XFAChoiceListNode.java 8.15 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.layout.XFAChoiceListNode$
 *  com.adobe.forms.layout.XFAChoiceListNode$$anonfun
 *  com.adobe.forms.layout.XFAChoiceListNode$$anonfun$editable
 *  com.adobe.forms.layout.XFAChoiceListNode$$anonfun$items
 *  scala.Function0
 *  scala.Function1
 *  scala.Option
 *  scala.ScalaObject
 *  scala.collection.generic.CanBuildFrom
 *  scala.collection.immutable.Seq
 *  scala.collection.immutable.Seq$
 *  scala.reflect.ScalaSignature
 *  scala.runtime.AbstractFunction0
 *  scala.runtime.AbstractFunction0$mcZ
 *  scala.runtime.AbstractFunction0$mcZ$sp
 *  scala.runtime.AbstractFunction1
 *  scala.runtime.BoxesRunTime
 *  scala.xml.Node
 *  scala.xml.NodeSeq
 */
package com.adobe.forms.layout;

import com.adobe.forms.layout.Item;
import com.adobe.forms.layout.Open;
import com.adobe.forms.layout.Open$;
import com.adobe.forms.layout.XFAChoiceListNode;
import com.adobe.forms.layout.XFAFieldNode;
import com.adobe.forms.layout.XFANode;
import scala.Function0;
import scala.Function1;
import scala.Option;
import scala.ScalaObject;
import scala.collection.generic.CanBuildFrom;
import scala.collection.immutable.Seq;
import scala.reflect.ScalaSignature;
import scala.runtime.AbstractFunction0;
import scala.runtime.AbstractFunction1;
import scala.runtime.BoxesRunTime;
import scala.xml.Node;
import scala.xml.NodeSeq;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
@ScalaSignature(bytes="\u0006\u0001]3A!\u0001\u0002\u0001\u0017\t\t\u0002LR!DQ>L7-\u001a'jgRtu\u000eZ3\u000b\u0005\r!\u0011A\u00027bs>,HO\u0003\u0002\u0006\r\u0005)am\u001c:ng*\u0011q\u0001C\u0001\u0006C\u0012|'-\u001a\u0006\u0002\u0013\u0005\u00191m\\7\u0004\u0001M\u0019\u0001\u0001\u0004\t\u0011\u00055qQ\"\u0001\u0002\n\u0005=\u0011!\u0001\u0004-G\u0003\u001aKW\r\u001c3O_\u0012,\u0007CA\t\u0015\u001b\u0005\u0011\"\"A\n\u0002\u000bM\u001c\u0017\r\\1\n\u0005U\u0011\"aC*dC2\fwJ\u00196fGRD\u0001b\u0006\u0001\u0003\u0002\u0003\u0006I\u0001G\u0001\u0005]>$W\r\u0005\u0002\u001a95\t!D\u0003\u0002\u001c%\u0005\u0019\u00010\u001c7\n\u0005uQ\"\u0001\u0002(pI\u0016DQa\b\u0001\u0005\u0002\u0001\na\u0001P5oSRtDCA\u0011#!\ti\u0001\u0001C\u0003\u0018=\u0001\u0007\u0001\u0004C\u0004%\u0001\t\u0007I\u0011A\u0013\u0002\u00119|G-\u001a+za\u0016,\u0012A\n\t\u0003O1j\u0011\u0001\u000b\u0006\u0003S)\nA\u0001\\1oO*\t1&\u0001\u0003kCZ\f\u0017BA\u0017)\u0005\u0019\u0019FO]5oO\"1q\u0006\u0001Q\u0001\n\u0019\n\u0011B\\8eKRK\b/\u001a\u0011\t\u0011E\u0002\u0001R1A\u0005\u0002I\nQ!\u001b;f[N,\u0012a\r\t\u0004ieZT\"A\u001b\u000b\u0005Y:\u0014!C5n[V$\u0018M\u00197f\u0015\tA$#\u0001\u0006d_2dWm\u0019;j_:L!AO\u001b\u0003\u0007M+\u0017\u000f\u0005\u0002\u000ey%\u0011QH\u0001\u0002\u0005\u0013R,W\u000e\u0003\u0005@\u0001!\u0005\t\u0015)\u00034\u0003\u0019IG/Z7tA!A\u0011\t\u0001EC\u0002\u0013\u0005!)\u0001\u0003pa\u0016tW#A\"\u0011\u0007E!e)\u0003\u0002F%\t1q\n\u001d;j_:\u0004\"!D$\n\u0005!\u0013!\u0001B(qK:D\u0001B\u0013\u0001\t\u0002\u0003\u0006KaQ\u0001\u0006_B,g\u000e\t\u0005\t\u0019\u0002A)\u0019!C\u0001\u001b\u0006AQ\rZ5uC\ndW-F\u0001O!\t\tr*\u0003\u0002Q%\t9!i\\8mK\u0006t\u0007\u0002\u0003*\u0001\u0011\u0003\u0005\u000b\u0015\u0002(\u0002\u0013\u0015$\u0017\u000e^1cY\u0016\u0004\u0003\u0002\u0003+\u0001\u0011\u000b\u0007I\u0011A\u0013\u0002\tI|G.\u001a\u0005\t-\u0002A\t\u0011)Q\u0005M\u0005)!o\u001c7fA\u0001")
public class XFAChoiceListNode
extends XFAFieldNode
implements ScalaObject {
    private final Node node;
    private final String nodeType;
    private Seq<Item> items;
    private Option<Open> open;
    private boolean editable;
    private String role;

    @Override
    public String nodeType() {
        return this.nodeType;
    }

    /*
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     * Converted monitor instructions to comments
     * Lifted jumps to return sites
     */
    public Seq<Item> items() {
        if ((this.bitmap$0 & 2048) != 0) return this.items;
        XFAChoiceListNode xFAChoiceListNode = this;
        // MONITORENTER : xFAChoiceListNode
        if ((this.bitmap$0 & 2048) == 0) {
            this.items = (Seq)this.node.$bslash("item").map((Function1)new scala.Serializable(this){
                public static final long serialVersionUID;
                private final XFAChoiceListNode $outer;

                public static {
                    long l = .anonfun.items.serialVersionUID = 0;
                }

                public final Item apply(Node item) {
                    String display$2 = (String)this.$outer.readNodeAsString("display", (NodeSeq)item).getOrElse((Function0)new com.adobe.forms.layout.XFAChoiceListNode$$anonfun$items$1$$anonfun$1(this));
                    String save = (String)this.$outer.readNodeAsString("save", (NodeSeq)item).getOrElse((Function0)new com.adobe.forms.layout.XFAChoiceListNode$$anonfun$items$1$$anonfun$2(this, display$2));
                    Option<Object> selected = this.$outer.readNodeAsBoolean("@selected", (NodeSeq)item);
                    return new Item(display$2, save, BoxesRunTime.unboxToBoolean((Object)selected.getOrElse((Function0)new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.layout.XFAChoiceListNode$$anonfun$items$1$$anonfun$apply$1.serialVersionUID = 0;
                        }

                        public final boolean apply() {
                            return this.apply$mcZ$sp();
                        }

                        public boolean apply$mcZ$sp() {
                            return false;
                        }
                    })));
                }
            }, Seq..MODULE$.canBuildFrom());
            this.bitmap$0 = this.bitmap$0 | 2048;
        }
        // MONITOREXIT : xFAChoiceListNode
        this.node = null;
        return this.items;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<Open> open() {
        if ((this.bitmap$0 & 4096) != 0) return this.open;
        XFAChoiceListNode xFAChoiceListNode = this;
        synchronized (xFAChoiceListNode) {
            if ((this.bitmap$0 & 4096) == 0) {
                this.open = Open$.MODULE$.apply(this.readNodeAsString("open", this.readNodeAsString$default$2()));
                this.bitmap$0 = this.bitmap$0 | 4096;
            }
            return this.open;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public boolean editable() {
        if ((this.bitmap$0 & 8192) != 0) return this.editable;
        XFAChoiceListNode xFAChoiceListNode = this;
        synchronized (xFAChoiceListNode) {
            if ((this.bitmap$0 & 8192) == 0) {
                this.editable = BoxesRunTime.unboxToBoolean((Object)this.readNodeAsBoolean("editable", this.readNodeAsBoolean$default$2()).getOrElse((Function0)new scala.Serializable(this){
                    public static final long serialVersionUID;

                    public static {
                        long l = .anonfun.editable.serialVersionUID = 0;
                    }

                    public final boolean apply() {
                        return this.apply$mcZ$sp();
                    }

                    public boolean apply$mcZ$sp() {
                        return false;
                    }
                }));
                this.bitmap$0 = this.bitmap$0 | 8192;
            }
            return this.editable;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public String role() {
        if ((this.bitmap$0 & 16384) != 0) return this.role;
        XFAChoiceListNode xFAChoiceListNode = this;
        synchronized (xFAChoiceListNode) {
            if ((this.bitmap$0 & 16384) == 0) {
                this.role = "listbox";
                this.bitmap$0 = this.bitmap$0 | 16384;
            }
            return this.role;
        }
    }

    public XFAChoiceListNode(Node node) {
        this.node = node;
        super(node);
        this.nodeType = "choicelist";
    }
}