NodeListScript.java 883 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa;

import com.adobe.xfa.Arg;
import com.adobe.xfa.ListBaseScript;
import com.adobe.xfa.Node;
import com.adobe.xfa.NodeList;
import com.adobe.xfa.Obj;
import com.adobe.xfa.ScriptFuncObj;
import com.adobe.xfa.ScriptPropObj;
import com.adobe.xfa.ScriptTable;

public class NodeListScript
extends ListBaseScript {
    protected static final ScriptTable moScriptTable = new ScriptTable(ListBaseScript.moScriptTable, "nodeList", null, new ScriptFuncObj[]{new ScriptFuncObj(NodeListScript.class, "namedItem", "namedItem", 7, new int[]{6}, 1, 10, 9, 0)});

    public static void namedItem(Obj pObj, Arg oRetVal, Arg[] pArgs) {
        String aName = pArgs[0].getString();
        oRetVal.setObject(((NodeList)pObj).getNamedItem(aName));
    }

    public static ScriptTable getScriptTable() {
        return moScriptTable;
    }
}