com.banda.function.business
Class FirstFunction

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by com.banda.function.business.FirstFunction
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

public class FirstFunction
extends org.nfunk.jep.function.PostfixMathCommand

'First' function defined for JEP tree / parser.

Since:
2012
Author:
© Peter Banda

Field Summary
static String TAG
           
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
FirstFunction()
           
 
Method Summary
 void run(Stack stack)
           
 double runScalar(Stack<Number> stack)
           
 double runVector(Stack<Number[]> stack)
           
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkStack, getNumberOfParameters, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static final String TAG
See Also:
Constant Field Values
Constructor Detail

FirstFunction

public FirstFunction()
Method Detail

run

public void run(Stack stack)
         throws org.nfunk.jep.ParseException
Specified by:
run in interface org.nfunk.jep.function.PostfixMathCommandI
Overrides:
run in class org.nfunk.jep.function.PostfixMathCommand
Throws:
org.nfunk.jep.ParseException

runScalar

public double runScalar(Stack<Number> stack)
                 throws org.nfunk.jep.ParseException
Throws:
org.nfunk.jep.ParseException

runVector

public double runVector(Stack<Number[]> stack)
                 throws org.nfunk.jep.ParseException
Throws:
org.nfunk.jep.ParseException


Copyright © 2013. All Rights Reserved.