Class ExtensionsConsole.PrintFunction
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.NaryFunction
com.singularsys.extexamples.consoles.ExtensionsConsole.PrintFunction
- All Implemented Interfaces:
PostfixMathCommandI,Serializable
- Enclosing class:
ExtensionsConsole
Class to add a print function.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, description, name, NaN, numberOfParameters -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with defaultSystem.outfor output and ", " for the separator.PrintFunction(String sep, String term) Constructor with specified separator and terminator -
Method Summary
Methods inherited from class com.singularsys.jep.functions.NaryFunction
runMethods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, asType, checkNumberOfParameters, getDescription, getDescription, getDescriptionWithType, getName, getNumberOfParameters, setCurNumberOfParameters, setDescription, setName, toString, toString
-
Constructor Details
-
PrintFunction
Constructor with specified separator and terminator- Parameters:
sep- separator
-
PrintFunction
public PrintFunction()Constructor with defaultSystem.outfor output and ", " for the separator.
-
-
Method Details
-
eval
Description copied from class:NaryFunctionEvaluate the function- Specified by:
evalin classNaryFunction- Parameters:
args- arguments to the function- Returns:
- value returned by the function
-