Constructor and Description |
---|
SimpleScript(Interpreter interpreter,
java.lang.String name,
java.lang.String source) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode() |
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getNames()
Returns the list of names defined in this script.
|
MutableSymbolTable |
getSymbolTable() |
java.lang.String |
getTypeName() |
java.net.URL |
getURL() |
java.lang.Object |
invokeFunction(java.lang.String funcname,
java.lang.Object[] args) |
void |
put(java.lang.String name,
java.lang.Object value) |
void |
setCode(java.lang.String source) |
public SimpleScript(Interpreter interpreter, java.lang.String name, java.lang.String source)
public MutableSymbolTable getSymbolTable()
public java.lang.String getTypeName()
getTypeName
in interface Script
public void put(java.lang.String name, java.lang.Object value)
public java.lang.Object invokeFunction(java.lang.String funcname, java.lang.Object[] args) throws java.lang.NoSuchMethodException
invokeFunction
in interface Script
java.lang.NoSuchMethodException
public final void setCode(java.lang.String source)