public class BindingsToSymbolTableAdapter extends DefaultSymbolTable implements MutableSymbolTable
functionAlias, functions, symbolTables, vars
Constructor and Description |
---|
BindingsToSymbolTableAdapter(javax.script.Bindings bindings) |
Modifier and Type | Method and Description |
---|---|
MutableSymbolTable |
clone()
Creates a copy of the object.
|
boolean |
exists(java.lang.String name) |
java.lang.String |
getName() |
java.util.Collection<java.lang.String> |
localvariables() |
void |
removeVar(java.lang.String name) |
void |
setVar(java.lang.String name,
java.lang.Object value) |
java.lang.Object |
value(java.lang.String name) |
java.util.Collection<java.lang.String> |
variables() |
addFunction, addFunctions, addSymbolTable, containsSymbolTable, fixSymbolTables, fixSymbolTables, function, functions, get, getFunctionAlias, getFunctions, getSymbolTables, getVars, isSQLCompatible, iterator, localfunctions, removeFunction, removeSymbolTable, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFunction, addFunctions, removeFunction
addSymbolTable, containsSymbolTable, function, functions, isSQLCompatible, localfunctions, removeSymbolTable
cloneQuietly, cloneQuietly
public BindingsToSymbolTableAdapter(javax.script.Bindings bindings)
public void setVar(java.lang.String name, java.lang.Object value)
setVar
in interface MutableSymbolTable
setVar
in class AbstractSymbolTable
public void removeVar(java.lang.String name)
removeVar
in interface MutableSymbolTable
removeVar
in class AbstractSymbolTable
public MutableSymbolTable clone() throws java.lang.CloneNotSupportedException
Cloneable
clone
in interface MutableSymbolTable
clone
in interface SymbolTable
clone
in class DefaultSymbolTable
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 java.lang.String getName()
getName
in interface SymbolTable
getName
in class AbstractSymbolTable
public boolean exists(java.lang.String name)
exists
in interface SymbolTable
exists
in class AbstractSymbolTable
public java.lang.Object value(java.lang.String name)
value
in interface SymbolTable
value
in class AbstractSymbolTable
public java.util.Collection<java.lang.String> variables()
variables
in interface SymbolTable
variables
in class AbstractSymbolTable
public java.util.Collection<java.lang.String> localvariables()
localvariables
in interface SymbolTable
localvariables
in class AbstractSymbolTable