Class Calculate
java.lang.Object
org.apache.ofbiz.minilang.MiniLangElement
org.apache.ofbiz.minilang.method.MethodOperation
org.apache.ofbiz.minilang.method.otherops.Calculate
Implements the <calculate> element.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Implements the <calcop> element.static final class
A factory for the <calculate> element.final class
Implements the <number> element.static interface
Interface for <calculate> sub-element implementations.Nested classes/interfaces inherited from class org.apache.ofbiz.minilang.method.MethodOperation
MethodOperation.DeprecatedOperation, MethodOperation.Factory<M extends MethodOperation>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
exec
(MethodContext methodContext) Executes the operation.toString()
Methods inherited from class org.apache.ofbiz.minilang.method.MethodOperation
expandedString, rawString
Methods inherited from class org.apache.ofbiz.minilang.MiniLangElement
gatherArtifactInfo, getLineNumber, getSimpleMethod, getTagName, outputTraceMessage
-
Field Details
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE- See Also:
-
TYPE_FLOAT
public static final int TYPE_FLOAT- See Also:
-
TYPE_LONG
public static final int TYPE_LONG- See Also:
-
TYPE_INTEGER
public static final int TYPE_INTEGER- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_BIG_DECIMAL
public static final int TYPE_BIG_DECIMAL- See Also:
-
-
Constructor Details
-
Calculate
- Throws:
MiniLangException
-
-
Method Details
-
exec
Description copied from class:MethodOperation
Executes the operation. Returnstrue
if script execution should continue, orfalse
if script execution should stop.- Specified by:
exec
in classMethodOperation
- Throws:
MiniLangException
-
toString
- Overrides:
toString
in classMiniLangElement
-