org.ofbiz.minilang.method.otherops
Class Calculate

java.lang.Object
  extended by org.ofbiz.minilang.MiniLangElement
      extended by org.ofbiz.minilang.method.MethodOperation
          extended by org.ofbiz.minilang.method.otherops.Calculate

public final class Calculate
extends MethodOperation

Implements the <calculate> element.

See Also:
Mini-language Reference

Nested Class Summary
 class Calculate.CalcOp
          Implements the <calcop> element.
static class Calculate.CalculateFactory
          A factory for the <calculate> element.
 class Calculate.NumberOp
          Implements the <number> element.
static interface Calculate.SubCalc
          Interface for <calculate> sub-element implementations.
 
Nested classes/interfaces inherited from class org.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
 
Field Summary
static java.lang.String module
           
static int TYPE_BIG_DECIMAL
           
static int TYPE_DOUBLE
           
static int TYPE_FLOAT
           
static int TYPE_INTEGER
           
static int TYPE_LONG
           
static int TYPE_STRING
           
 
Fields inherited from class org.ofbiz.minilang.MiniLangElement
simpleMethod
 
Constructor Summary
Calculate(org.w3c.dom.Element element, SimpleMethod simpleMethod)
           
 
Method Summary
 boolean exec(MethodContext methodContext)
          Executes the operation.
 java.lang.String toString()
           
 
Methods inherited from class org.ofbiz.minilang.method.MethodOperation
expandedString, rawString
 
Methods inherited from class org.ofbiz.minilang.MiniLangElement
gatherArtifactInfo, getLineNumber, getSimpleMethod, getTagName, outputTraceMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

TYPE_DOUBLE

public static final int TYPE_DOUBLE
See Also:
Constant Field Values

TYPE_FLOAT

public static final int TYPE_FLOAT
See Also:
Constant Field Values

TYPE_LONG

public static final int TYPE_LONG
See Also:
Constant Field Values

TYPE_INTEGER

public static final int TYPE_INTEGER
See Also:
Constant Field Values

TYPE_STRING

public static final int TYPE_STRING
See Also:
Constant Field Values

TYPE_BIG_DECIMAL

public static final int TYPE_BIG_DECIMAL
See Also:
Constant Field Values
Constructor Detail

Calculate

public Calculate(org.w3c.dom.Element element,
                 SimpleMethod simpleMethod)
          throws MiniLangException
Throws:
MiniLangException
Method Detail

exec

public boolean exec(MethodContext methodContext)
             throws MiniLangException
Description copied from class: MethodOperation
Executes the operation. Returns true if script execution should continue, or false if script execution should stop.

Specified by:
exec in class MethodOperation
Throws:
MiniLangException

toString

public java.lang.String toString()
Overrides:
toString in class MiniLangElement