com.singularsys.jep
Class FunctionTable
java.lang.Object
com.singularsys.jep.FunctionTable
- All Implemented Interfaces:
- JepComponent, java.io.Serializable
- Direct Known Subclasses:
- BigDecFunctionTable, CaseInsensitiveFunctionTable, StandardFunctionTable
public class FunctionTable
- extends java.lang.Object
- implements JepComponent
A table holding details of the functions know to Jep.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
table
protected java.util.Map<java.lang.String,PostfixMathCommandI> table
FunctionTable
public FunctionTable()
init
public void init(Jep jep)
- Description copied from interface:
JepComponent
- Initialize the component. This methods is called whenever a component
is added to Jep. Hence it allows components to keep track of the other
components they may rely on.
- Specified by:
init
in interface JepComponent
- Parameters:
jep
- the current Jep instance
getFunction
public PostfixMathCommandI getFunction(java.lang.String name)
addFunction
public PostfixMathCommandI addFunction(java.lang.String name,
PostfixMathCommandI pfmc)
clear
public void clear()
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,PostfixMathCommandI>> entrySet()
isEmpty
public boolean isEmpty()
keySet
public java.util.Set<java.lang.String> keySet()
size
public int size()
values
public java.util.Collection<PostfixMathCommandI> values()
containsKey
public boolean containsKey(java.lang.String key)
containsValue
public boolean containsValue(PostfixMathCommandI value)
remove
public PostfixMathCommandI remove(java.lang.String key)
Copyright © 2007 Singular Systems http://www.singularsys.com/jep