public interface ScriptExports
| Modifier and Type | Method and Description |
|---|---|
ScriptValue |
executeMethod(String name,
Object... args)
Executes a method with optional arguments.
|
ResourcePath |
getResource()
Resource path for the script that exported the methods.
|
ScriptValue |
getValue()
Exported object as a value.
|
boolean |
hasMethod(String name)
Returns true if it has a method by the specified name, false otherwise.
|
ResourcePath getResource()
ScriptValue getValue()
boolean hasMethod(String name)
name - Name of the method.ScriptValue executeMethod(String name, Object... args)
name - Name of the method.args - Optional arguments.