org.quattor.pan.dml.operators
Class Sub
java.lang.Object
org.quattor.pan.dml.AbstractOperation
org.quattor.pan.dml.operators.Sub
- All Implemented Interfaces:
- Operation
public final class Sub
- extends AbstractOperation
Implements a subtract operation for longs and doubles. If one of the
arguments is a double, then the result is a double. Otherwise, the result is
a long.
- Author:
- loomis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
newOperation
public static Operation newOperation(SourceRange sourceRange,
Operation... ops)
throws SyntaxException
- Throws:
SyntaxException
execute
public Element execute(Context context)
- Description copied from interface:
Operation
- Execute this operation within the given context. If an error occurs, an
EvaluationException will be thrown with the details.
- Specified by:
execute in interface Operation- Specified by:
execute in class AbstractOperation
- Parameters:
context - evaluation context for the statement
- Returns:
- Element produced by running operation
execute
public static Element execute(NumberProperty a,
NumberProperty b)
Copyright © 2011 Quattor. All Rights Reserved.