public class DefaultInterpreter extends java.lang.Object implements Interpreter
Interpreter.Cache
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RECURSION_LIMIT |
Constructor and Description |
---|
DefaultInterpreter() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
call(java.lang.String function,
java.lang.Object... args) |
java.lang.Object |
call(SymbolTable symbolTable,
java.lang.String funcname,
java.lang.Object... args) |
Interpreter |
clone()
Creates a copy of the object.
|
java.lang.Double |
getAccuracy() |
Interpreter.Cache |
getCache() |
CodeBuilder |
getCodeBuilder() |
Code |
getCurrentCode() |
int |
getMaxRecursionLimit() |
ResourcesStorage |
getResourcesStorage() |
SymbolTable |
getSymbolTable() |
java.io.Writer |
getWriter() |
boolean |
hasFunction(java.lang.String function) |
boolean |
isSQLCompatible() |
void |
link(Code code) |
java.lang.Object |
run(Code code) |
void |
run(MutableSymbolTable symbolTable,
Code code) |
java.lang.Object |
runCode(Code code) |
void |
setAccuracy(java.lang.Double accuracy) |
void |
setMaxRecursionLimit(int limit) |
void |
setResourcesStorage(ResourcesStorage resourcesStorage) |
void |
setSQLCompatible(boolean sqlCompatible) |
void |
setSymbolTable(SymbolTable symbolTable) |
void |
setWriter(java.io.Writer writer) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cloneQuietly, cloneQuietly
public Interpreter clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface Interpreter
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.
public CodeBuilder getCodeBuilder()
public ResourcesStorage getResourcesStorage()
getResourcesStorage
in interface Interpreter
public void setResourcesStorage(ResourcesStorage resourcesStorage)
setResourcesStorage
in interface Interpreter
public java.io.Writer getWriter()
getWriter
in interface Interpreter
public void setWriter(java.io.Writer writer)
setWriter
in interface Interpreter
public java.lang.Object call(SymbolTable symbolTable, java.lang.String funcname, java.lang.Object... args) throws java.lang.Exception
call
in interface Interpreter
java.lang.Exception
public java.lang.Object call(java.lang.String function, java.lang.Object... args) throws java.lang.Exception
call
in interface Interpreter
java.lang.Exception
public boolean hasFunction(java.lang.String function)
hasFunction
in interface Interpreter
public int getMaxRecursionLimit()
public void setMaxRecursionLimit(int limit)
public Interpreter.Cache getCache()
getCache
in interface Interpreter
public void setSymbolTable(SymbolTable symbolTable)
setSymbolTable
in interface Interpreter
public SymbolTable getSymbolTable()
getSymbolTable
in interface Interpreter
public java.lang.Double getAccuracy()
getAccuracy
in interface Interpreter
public void setAccuracy(java.lang.Double accuracy)
setAccuracy
in interface Interpreter
public void setSQLCompatible(boolean sqlCompatible)
setSQLCompatible
in interface Interpreter
public boolean isSQLCompatible()
isSQLCompatible
in interface Interpreter
public void run(MutableSymbolTable symbolTable, Code code)
run
in interface Interpreter
public java.lang.Object run(Code code)
run
in interface Interpreter
public void link(Code code)
link
in interface Interpreter
public java.lang.Object runCode(Code code) throws java.lang.Exception
runCode
in interface Interpreter
java.lang.Exception
public Code getCurrentCode()
getCurrentCode
in interface Interpreter