org.objectweb.medor.expression.lib
Class UMinus
java.lang.Object
org.objectweb.medor.expression.lib.BasicOperator
org.objectweb.medor.expression.lib.BasicUnaryOperator
org.objectweb.medor.expression.lib.BasicUnaryArithmeticOperator
org.objectweb.medor.expression.lib.UMinus
- All Implemented Interfaces:
- java.lang.Cloneable, Expression, Operator, java.io.Serializable, UnaryArithmeticOperator, UnaryOperator
- public class UMinus
- extends BasicUnaryArithmeticOperator
- See Also:
- Serialized Form
Fields inherited from interface org.objectweb.medor.expression.api.Operator |
ABS, AND, AVG, BITWIZE, CONCAT, CONDAND, CONDOR, COUNT, DIV, EQUAL, FIRSTLOCATE, GREATER, GREATEREQUAL, IN, INDEXEDLOCATE, LENGTH, LOWER, LOWEREQUAL, MAX, MEMBEROF, MIN, MINUS, MOD, MULT, NAV, NOT, NOTEQUAL, NOTMEMBEROF, OR, PLUS, SQRT, SUBSTRING, SUM, UMINUS |
Method Summary |
int |
evaluate(byte op)
This fonction evaluate the comaparison between two numerics variables; |
double |
evaluate(double op)
This fonction evaluate the comaparison between two numerics variables; |
float |
evaluate(float op)
This fonction evaluate the comaparison between two numerics variables; |
int |
evaluate(int op)
This fonction evaluate the comaparison between two numerics variables; |
long |
evaluate(long op)
This fonction evaluate the comaparison between two numerics variables; |
int |
evaluate(short op)
This fonction evaluate the comaparison between two numerics variables; |
java.lang.String |
getOperatorString()
Returns the String representing the operator in Java |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UMinus
public UMinus()
UMinus
public UMinus(Expression e)
evaluate
public int evaluate(int op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
evaluate
public int evaluate(short op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
evaluate
public long evaluate(long op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
evaluate
public float evaluate(float op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
evaluate
public int evaluate(byte op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
evaluate
public double evaluate(double op)
- Description copied from interface:
UnaryArithmeticOperator
- This fonction evaluate the comaparison between two numerics variables;
- Specified by:
evaluate
in interface UnaryArithmeticOperator
- Specified by:
evaluate
in class BasicUnaryArithmeticOperator
getOperatorString
public java.lang.String getOperatorString()
- Description copied from interface:
Operator
- Returns the String representing the operator in Java
- Returns:
- the String representing the operator in Java