Class Right
java.lang.Object
com.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.BinaryFunction
com.singularsys.jep.functions.strings.Right
- All Implemented Interfaces:
PostfixMathCommandI
,Serializable
Extract the right most n characters from a string: right("abcdefg",2) -> "fg".
- If n is greater than the length of the string return the full string.
- If n is less than zero an EvaluationException is thrown.
- If the first argument is not a string an EvaluationException is thrown.
- If the second argument is not a number representing an integer an EvaluationException is thrown.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
-
Constructor Summary
-
Method Summary
Methods inherited from class com.singularsys.jep.functions.BinaryFunction
instanceOf, instanceOf, run
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
-
Constructor Details
-
Right
public Right()
-
-
Method Details
-
eval
- Specified by:
eval
in classBinaryFunction
- Throws:
EvaluationException
-