public class FunctionTable extends java.lang.Object implements JepComponent
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,PostfixMathCommandI> |
table |
Constructor and Description |
---|
FunctionTable() |
Modifier and Type | Method and Description |
---|---|
PostfixMathCommandI |
addFunction(java.lang.String name,
PostfixMathCommandI pfmc) |
void |
clear() |
boolean |
containsKey(java.lang.String key) |
boolean |
containsValue(PostfixMathCommandI value) |
java.util.Set<java.util.Map.Entry<java.lang.String,PostfixMathCommandI>> |
entrySet() |
PostfixMathCommandI |
getFunction(java.lang.String name) |
JepComponent |
getLightWeightInstance()
Return a function table with the same set of functions as this one.
|
void |
init(Jep jep)
Initialize the component.
|
boolean |
isEmpty() |
java.util.Set<java.lang.String> |
keySet() |
PostfixMathCommandI |
remove(java.lang.String key) |
FunctionTable |
shallowCopy()
Returns a new shallow copy of this function table.
|
int |
size() |
java.lang.String |
toString() |
java.util.Collection<PostfixMathCommandI> |
values() |
protected java.util.Map<java.lang.String,PostfixMathCommandI> table
public void init(Jep jep)
JepComponent
init
in interface JepComponent
jep
- the current Jep instancepublic PostfixMathCommandI getFunction(java.lang.String name)
public PostfixMathCommandI addFunction(java.lang.String name, PostfixMathCommandI pfmc)
public void clear()
public java.util.Set<java.util.Map.Entry<java.lang.String,PostfixMathCommandI>> entrySet()
public boolean isEmpty()
public java.util.Set<java.lang.String> keySet()
public int size()
public java.util.Collection<PostfixMathCommandI> values()
public boolean containsKey(java.lang.String key)
public boolean containsValue(PostfixMathCommandI value)
public PostfixMathCommandI remove(java.lang.String key)
public JepComponent getLightWeightInstance()
JepComponent
interface
then that functions JepComponent.getLightWeightInstance()
method
will be called to return a thread safe function.getLightWeightInstance
in interface JepComponent
public FunctionTable shallowCopy()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 Singular Systems http://www.singularsys.com/jep