com.jaxfront.core.jep
Class StartsWith

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by com.jaxfront.core.jep.JaxfrontMathCommand
          extended by com.jaxfront.core.jep.StartsWith
All Implemented Interfaces:
org.nfunk.jep.function.PostfixMathCommandI

public class StartsWith
extends JaxfrontMathCommand

The StartsWith function returns 1.0 if a String starts with a given String otherwise returns 0. 0 and 1.0 can be casted to a Boolean value! Examples: endsWith("XML","X")=1.0 endsWith("XML","L")=0

Version:
1.60

Constructor Summary
StartsWith()
          Constructor.
 
Method Summary
 void run(MathEvaluator.MathCommunicator communicator, java.util.Stack stack)
           
 
Methods inherited from class com.jaxfront.core.jep.JaxfrontMathCommand
run
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
getNumberOfParameters, getRootNode, run, setCurNumberOfParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartsWith

public StartsWith()
Constructor.

Method Detail

run

public void run(MathEvaluator.MathCommunicator communicator,
                java.util.Stack stack)
         throws org.nfunk.jep.ParseException
Specified by:
run in class JaxfrontMathCommand
Throws:
org.nfunk.jep.ParseException
See Also:
org.nfunk.jep.function.PostfixMathCommandI#run(Stack)