com.singularsys.jep.functions.strings
Class Concat

java.lang.Object
  extended by com.singularsys.jep.functions.PostfixMathCommand
      extended by com.singularsys.jep.functions.NaryBinaryFunction
          extended by com.singularsys.jep.functions.strings.Concat
All Implemented Interfaces:
PostfixMathCommandI, java.io.Serializable

public class Concat
extends NaryBinaryFunction

Concatenates string arguments. Syntax: concat(str1,str2,...) An exception is thrown if non string arguments are found.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand
curNumberOfParameters, name, NaN, numberOfParameters
 
Constructor Summary
Concat()
           
 
Method Summary
 java.lang.String concat(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object eval(java.lang.Object l, java.lang.Object r)
           
 
Methods inherited from class com.singularsys.jep.functions.NaryBinaryFunction
checkNumberOfParameters, eval, run
 
Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkStack, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Concat

public Concat()
Method Detail

eval

public java.lang.Object eval(java.lang.Object l,
                             java.lang.Object r)
                      throws EvaluationException
Specified by:
eval in class NaryBinaryFunction
Throws:
EvaluationException

concat

public java.lang.String concat(java.lang.Object l,
                               java.lang.Object r)
                        throws EvaluationException
Throws:
EvaluationException


Copyright © 2010 Singular Systems http://www.singularsys.com/jep