public class IsType extends UnaryFunction
jep.addFunction("isNumber",new IsType(Number.class));
curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
IsType(java.lang.Class<?> classType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eval(java.lang.Object arg) |
run
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString
public IsType(java.lang.Class<?> classType)
classType
- the class to test withpublic java.lang.Object eval(java.lang.Object arg) throws EvaluationException
eval
in class UnaryFunction
EvaluationException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep