XFACheckButtonNode.java 7.34 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  scala.MatchError
 *  scala.None
 *  scala.None$
 *  scala.Option
 *  scala.ScalaObject
 *  scala.Some
 *  scala.Tuple2
 *  scala.reflect.ScalaSignature
 *  scala.xml.Node
 *  scala.xml.NodeSeq
 */
package com.adobe.forms.layout;

import com.adobe.forms.layout.XFAFieldNode;
import com.adobe.forms.layout.XFANode;
import scala.MatchError;
import scala.None;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.Tuple2;
import scala.reflect.ScalaSignature;
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\u0001Y3A!\u0001\u0002\u0001\u0017\t\u0011\u0002LR!DQ\u0016\u001c7NQ;ui>tgj\u001c3f\u0015\t\u0019A!\u0001\u0004mCf|W\u000f\u001e\u0006\u0003\u000b\u0019\tQAZ8s[NT!a\u0002\u0005\u0002\u000b\u0005$wNY3\u000b\u0003%\t1aY8n\u0007\u0001\u00192\u0001\u0001\u0007\u0011!\tia\"D\u0001\u0003\u0013\ty!A\u0001\u0007Y\r\u00063\u0015.\u001a7e\u001d>$W\r\u0005\u0002\u0012)5\t!CC\u0001\u0014\u0003\u0015\u00198-\u00197b\u0013\t)\"CA\u0006TG\u0006d\u0017m\u00142kK\u000e$\b\u0002C\f\u0001\u0005\u0003\u0005\u000b\u0011\u0002\r\u0002\t9|G-\u001a\t\u00033qi\u0011A\u0007\u0006\u00037I\t1\u0001_7m\u0013\ti\"D\u0001\u0003O_\u0012,\u0007\"B\u0010\u0001\t\u0003\u0001\u0013A\u0002\u001fj]&$h\b\u0006\u0002\"EA\u0011Q\u0002\u0001\u0005\u0006/y\u0001\r\u0001\u0007\u0005\tI\u0001A)\u0019!C\u0001K\u0005IqM]8va:\u000bW.Z\u000b\u0002MA\u0019\u0011cJ\u0015\n\u0005!\u0012\"AB(qi&|g\u000e\u0005\u0002+[9\u0011\u0011cK\u0005\u0003YI\ta\u0001\u0015:fI\u00164\u0017B\u0001\u00180\u0005\u0019\u0019FO]5oO*\u0011AF\u0005\u0005\tc\u0001A\t\u0011)Q\u0005M\u0005QqM]8va:\u000bW.\u001a\u0011\t\u0011M\u0002\u0001r1Q\u0005\nQ\n1\u0001\u001f\u00132+\u0005)\u0004\u0003B\t7qaJ!a\u000e\n\u0003\rQ+\b\u000f\\33!\tId(D\u0001;\u0015\tYD(\u0001\u0003mC:<'\"A\u001f\u0002\t)\fg/Y\u0005\u0003]iB\u0001\u0002\u0011\u0001\t\u0002\u0003\u0005K!N\u0001\u0005q\u0012\n\u0004\u0005\u0003\u0005C\u0001!\u0015\r\u0011\"\u0001D\u0003!qw\u000eZ3UsB,W#\u0001\u001d\t\u0011\u0015\u0003\u0001\u0012!Q!\na\n\u0011B\\8eKRK\b/\u001a\u0011\t\u0011\u001d\u0003\u0001R1A\u0005\u0002\r\u000bAA]8mK\"A\u0011\n\u0001E\u0001B\u0003&\u0001(A\u0003s_2,\u0007\u0005\u0003\u0005L\u0001!\u0015\r\u0011\"\u0001&\u0003\u001dygNV1mk\u0016D\u0001\"\u0014\u0001\t\u0002\u0003\u0006KAJ\u0001\t_:4\u0016\r\\;fA!Aq\n\u0001EC\u0002\u0013\u0005\u0001+A\u0005jg\u000eCWmY6fIV\t\u0011\u000b\u0005\u0002\u0012%&\u00111K\u0005\u0002\b\u0005>|G.Z1o\u0011!)\u0006\u0001#A!B\u0013\t\u0016AC5t\u0007\",7m[3eA\u0001")
public class XFACheckButtonNode
extends XFAFieldNode
implements ScalaObject {
    private Option<String> groupName;
    private Tuple2<String, String> x$1;
    private String nodeType;
    private String role;
    private Option<String> onValue;
    private boolean isChecked;
    private volatile int bitmap$priv$0;

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<String> groupName() {
        if ((this.bitmap$0 & 2048) != 0) return this.groupName;
        XFACheckButtonNode xFACheckButtonNode = this;
        synchronized (xFACheckButtonNode) {
            if ((this.bitmap$0 & 2048) == 0) {
                this.groupName = this.readNodeAsString("groupName", this.readNodeAsString$default$2());
                this.bitmap$0 = this.bitmap$0 | 2048;
            }
            return this.groupName;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private Tuple2 x$1() {
        if ((this.bitmap$priv$0 & 1) != 0) return this.x$1;
        XFACheckButtonNode xFACheckButtonNode = this;
        synchronized (xFACheckButtonNode) {
            Tuple2 tuple2;
            Tuple2 tuple22;
            if ((this.bitmap$priv$0 & 1) != 0) return this.x$1;
            Option<String> option = this.groupName();
            if (option instanceof Some) {
                tuple2 = new Tuple2((Object)"radiofield", (Object)"radio");
            } else {
                None. v1 = None..MODULE$;
                Option<String> option2 = option;
                if (v1 == null) {
                    if (option2 != null) {
                        throw new MatchError(option);
                    }
                } else if (!v1.equals(option2)) throw new MatchError(option);
                tuple2 = tuple22 = new Tuple2((Object)"checkboxfield", (Object)"checkbox");
            }
            if (tuple22 == null) throw new MatchError((Object)tuple22);
            this.x$1 = new Tuple2(tuple22._1(), tuple22._2());
            this.bitmap$priv$0 |= 1;
            return this.x$1;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public String nodeType() {
        if ((this.bitmap$0 & 4096) != 0) return this.nodeType;
        XFACheckButtonNode xFACheckButtonNode = this;
        synchronized (xFACheckButtonNode) {
            if ((this.bitmap$0 & 4096) == 0) {
                this.nodeType = (String)this.x$1()._1();
                this.bitmap$0 = this.bitmap$0 | 4096;
            }
            return this.nodeType;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public String role() {
        if ((this.bitmap$0 & 8192) != 0) return this.role;
        XFACheckButtonNode xFACheckButtonNode = this;
        synchronized (xFACheckButtonNode) {
            if ((this.bitmap$0 & 8192) == 0) {
                this.role = (String)this.x$1()._2();
                this.bitmap$0 = this.bitmap$0 | 8192;
            }
            return this.role;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<String> onValue() {
        if ((this.bitmap$0 & 16384) != 0) return this.onValue;
        XFACheckButtonNode xFACheckButtonNode = this;
        synchronized (xFACheckButtonNode) {
            if ((this.bitmap$0 & 16384) == 0) {
                this.onValue = this.readNodeAsString("onValue", this.readNodeAsString$default$2());
                this.bitmap$0 = this.bitmap$0 | 16384;
            }
            return this.onValue;
        }
    }

    /*
     * Unable to fully structure code
     * Enabled aggressive block sorting
     * Enabled unnecessary exception pruning
     * Enabled aggressive exception aggregation
     * Converted monitor instructions to comments
     * Lifted jumps to return sites
     */
    public boolean isChecked() {
        if ((this.bitmap$0 & 32768) != 0) return this.isChecked;
        var1_1 = this;
        // MONITORENTER : var1_1
        if ((this.bitmap$0 & 32768) != 0) ** GOTO lbl17
        v0 = this.readNodeAsString("value", this.readNodeAsString$default$2());
        var2_2 = this.onValue();
        if (v0 != null) ** GOTO lbl11
        if (var2_2 == null) ** GOTO lbl-1000
        ** GOTO lbl-1000
lbl11: // 1 sources:
        if (v0.equals(var2_2)) lbl-1000: // 2 sources:
        {
            v1 = true;
        } else lbl-1000: // 2 sources:
        {
            v1 = false;
        }
        this.isChecked = v1;
        this.bitmap$0 = this.bitmap$0 | 32768;
lbl17: // 2 sources:
        // MONITOREXIT : var1_1
        return this.isChecked;
    }

    public XFACheckButtonNode(Node node) {
        super(node);
    }
}