public class JavascriptClass extends Object
| Constructor and Description |
|---|
JavascriptClass() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getProp(org.mozilla.javascript.ScriptableObject scope,
String prop) |
static Object |
getStaticProp(org.mozilla.javascript.ScriptableObject scope,
String className,
String prop) |
static org.mozilla.javascript.ScriptableObject |
init(String programName) |
static org.mozilla.javascript.ScriptableObject |
initInstance(org.mozilla.javascript.ScriptableObject scope,
String name,
Object... args) |
static <T> T |
invoke(org.mozilla.javascript.ScriptableObject scope,
String func,
Object... args) |
static <T> T |
invokeStatic(org.mozilla.javascript.ScriptableObject scope,
String className,
String func,
Object... args) |
static void |
setProp(org.mozilla.javascript.ScriptableObject scope,
String prop,
Object value) |
static void |
setStaticProp(org.mozilla.javascript.ScriptableObject scope,
String className,
String prop,
Object value) |
public static <T> T invoke(org.mozilla.javascript.ScriptableObject scope,
String func,
Object... args)
public static <T> T invokeStatic(org.mozilla.javascript.ScriptableObject scope,
String className,
String func,
Object... args)
public static Object getStaticProp(org.mozilla.javascript.ScriptableObject scope, String className, String prop)
public static void setProp(org.mozilla.javascript.ScriptableObject scope,
String prop,
Object value)
public static void setStaticProp(org.mozilla.javascript.ScriptableObject scope,
String className,
String prop,
Object value)
public static org.mozilla.javascript.ScriptableObject init(String programName)
Copyright © 2019. All rights reserved.