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

import com.adobe.forms.layout.ImageFormat;
import com.adobe.forms.layout.ImageFormat$;
import com.adobe.forms.layout.XFAFieldNode;
import com.adobe.forms.layout.XFANode;
import scala.MatchError;
import scala.Option;
import scala.ScalaObject;
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\u0001\u00014A!\u0001\u0002\u0001\u0017\t\t\u0002LR!J[\u0006<WMR5fY\u0012tu\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\n\u0001\"[7bO\u0016\u001c&oY\u000b\u0002gA\u0019\u0011\u0003\u000e\u001c\n\u0005U\u0012\"AB(qi&|g\u000e\u0005\u00028u9\u0011\u0011\u0003O\u0005\u0003sI\ta\u0001\u0015:fI\u00164\u0017BA\u0017<\u0015\tI$\u0003\u0003\u0005>\u0001!\u0005\t\u0015)\u00034\u0003%IW.Y4f'J\u001c\u0007\u0005\u0003\u0005@\u0001!\u0015\r\u0011\"\u0001A\u0003-IW.Y4f\r>\u0014X.\u0019;\u0016\u0003\u0005\u00032!\u0005\u001bC!\ti1)\u0003\u0002E\u0005\tY\u0011*\\1hK\u001a{'/\\1u\u0011!1\u0005\u0001#A!B\u0013\t\u0015\u0001D5nC\u001e,gi\u001c:nCR\u0004\u0003\u0002\u0003%\u0001\u0011\u000f\u0007K\u0011B%\u0002\u0007a$\u0013'F\u0001K!\u0011\t2*T'\n\u00051\u0013\"A\u0002+va2,'\u0007E\u0002\u0012i9\u0003\"!E(\n\u0005A\u0013\"A\u0002#pk\ndW\r\u0003\u0005S\u0001!\u0005\t\u0011)\u0003K\u0003\u0011AH%\r\u0011\t\u0011Q\u0003\u0001R1A\u0005\u0002U\u000b!![,\u0016\u00035C\u0001b\u0016\u0001\t\u0002\u0003\u0006K!T\u0001\u0004S^\u0003\u0003\u0002C-\u0001\u0011\u000b\u0007I\u0011A+\u0002\u0005%D\u0005\u0002C.\u0001\u0011\u0003\u0005\u000b\u0015B'\u0002\u0007%D\u0005\u0005\u0003\u0005^\u0001!\u0015\r\u0011\"\u0001&\u0003\u0011\u0011x\u000e\\3\t\u0011}\u0003\u0001\u0012!Q!\n\u0019\nQA]8mK\u0002\u0002")
public class XFAImageFieldNode
extends XFAFieldNode
implements ScalaObject {
    private final Node node;
    private final String nodeType;
    private Option<String> imageSrc;
    private Option<ImageFormat> imageFormat;
    private Tuple2<Option<Object>, Option<Object>> x$1;
    private Option<Object> iW;
    private Option<Object> iH;
    private String role;
    private volatile int bitmap$priv$0;

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

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<String> imageSrc() {
        if ((this.bitmap$0 & 2048) != 0) return this.imageSrc;
        XFAImageFieldNode xFAImageFieldNode = this;
        synchronized (xFAImageFieldNode) {
            if ((this.bitmap$0 & 2048) == 0) {
                this.imageSrc = this.readNodeAsString("imageSrc", this.node.$bslash("Graphic"));
                this.bitmap$0 = this.bitmap$0 | 2048;
            }
            return this.imageSrc;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<ImageFormat> imageFormat() {
        if ((this.bitmap$0 & 4096) != 0) return this.imageFormat;
        XFAImageFieldNode xFAImageFieldNode = this;
        synchronized (xFAImageFieldNode) {
            if ((this.bitmap$0 & 4096) == 0) {
                this.imageFormat = ImageFormat$.MODULE$.apply(this.readNodeAsString("imageFormat", this.node.$bslash("Graphic")));
                this.bitmap$0 = this.bitmap$0 | 4096;
            }
            return this.imageFormat;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private Tuple2 x$1() {
        if ((this.bitmap$priv$0 & 1) != 0) return this.x$1;
        XFAImageFieldNode xFAImageFieldNode = this;
        synchronized (xFAImageFieldNode) {
            if ((this.bitmap$priv$0 & 1) == 0) {
                Tuple2 tuple2 = new Tuple2(this.readNodeAsDouble("iW", this.node.$bslash("Graphic")), this.readNodeAsDouble("iH", this.node.$bslash("Graphic")));
                if (tuple2 == null) throw new MatchError((Object)tuple2);
                this.x$1 = new Tuple2(tuple2._1(), tuple2._2());
                this.bitmap$priv$0 |= 1;
            }
            return this.x$1;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<Object> iW() {
        if ((this.bitmap$0 & 8192) != 0) return this.iW;
        XFAImageFieldNode xFAImageFieldNode = this;
        synchronized (xFAImageFieldNode) {
            if ((this.bitmap$0 & 8192) == 0) {
                this.iW = (Option)this.x$1()._1();
                this.bitmap$0 = this.bitmap$0 | 8192;
            }
            return this.iW;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public Option<Object> iH() {
        if ((this.bitmap$0 & 16384) != 0) return this.iH;
        XFAImageFieldNode xFAImageFieldNode = this;
        synchronized (xFAImageFieldNode) {
            if ((this.bitmap$0 & 16384) == 0) {
                this.iH = (Option)this.x$1()._2();
                this.bitmap$0 = this.bitmap$0 | 16384;
            }
            return this.iH;
        }
    }

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

    public XFAImageFieldNode(Node node) {
        this.node = node;
        super(node);
        this.nodeType = "imagefield";
    }
}