Class ExtensionsConsole.PrintfFunction
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.NaryFunction
com.singularsys.extexamples.consoles.ExtensionsConsole.PrintfFunction
- 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.PrintfFunction(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
-
PrintfFunction
Constructor with specified separator and terminator- Parameters:
sep- separator
-
PrintfFunction
public PrintfFunction()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
-