com.jaxfront.core.jep
Class SimpleDateFormat

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

public class SimpleDateFormat
extends JaxfrontMathCommand


Constructor Summary
SimpleDateFormat()
          Constructor.
 
Method Summary
 java.lang.Object format(long number, java.lang.String pattern)
          Method format calls the java.text.DecimalFormat class with the given parameters.
 java.lang.Object format(java.lang.Object value, java.lang.Object destinationPattern)
          Method format.
 java.lang.Object format(java.lang.String currentDate, java.lang.String sourcePattern, java.lang.String destinatioPattern)
          Method format calls the java.text.DecimalFormat class with the given parameters.
 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

SimpleDateFormat

public SimpleDateFormat()
Constructor.

Method Detail

format

public java.lang.Object format(long number,
                               java.lang.String pattern)
Method format calls the java.text.DecimalFormat class with the given parameters.

Parameters:
number -
pattern -
Returns:
String

format

public java.lang.Object format(java.lang.String currentDate,
                               java.lang.String sourcePattern,
                               java.lang.String destinatioPattern)
                        throws java.text.ParseException
Method format calls the java.text.DecimalFormat class with the given parameters.

Parameters:
number -
pattern -
Returns:
String
Throws:
java.text.ParseException

format

public java.lang.Object format(java.lang.Object value,
                               java.lang.Object destinationPattern)
                        throws java.text.ParseException
Method format.

Parameters:
value -
pattern -
Returns:
String
Throws:
java.text.ParseException

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)