Package com.singularsys.jep.misc
Class FunctionSet
java.lang.Object
com.singularsys.jep.misc.FunctionSet
- All Implemented Interfaces:
JepComponent
,Serializable
- Direct Known Subclasses:
StringFunctionSet
Holds a set of functions. These functions can be added to the main Jep function table
by including the set in the Jep constructor.
Jep jep = new Jep(new StringFunctionSet());
would add string functions to Jep.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets a light-weight instance suitable for using in multiple threads.void
Initialize the component.put
(String key, PostfixMathCommandI value)
-
Field Details
-
functions
-
-
Constructor Details
-
FunctionSet
public FunctionSet()
-
-
Method Details
-
getLightWeightInstance
Description copied from interface:JepComponent
Gets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstance
in interfaceJepComponent
- Returns:
- either a new instance, null or 'this'.
-
init
Description copied from interface:JepComponent
Initialize the component. This method 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 interfaceJepComponent
- Parameters:
jep
- the current Jep instance
-
get
-
put
-
remove
-