org.objectweb.medor.expression.api
Interface UnaryArithmeticOperator

All Superinterfaces:
org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operator, java.io.Serializable, UnaryOperator
All Known Implementing Classes:
BasicUnaryArithmeticOperator

public interface UnaryArithmeticOperator
extends UnaryOperator

Author:
Sebastien Chassande-Barrioz

Field Summary
 
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, STRING_LOWER, STRING_UPPER, 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;
 
Methods inherited from interface org.objectweb.medor.expression.api.UnaryOperator
getExpression, setExpression
 
Methods inherited from interface org.objectweb.medor.expression.api.Operator
getExpression, getOperandNumber, getOperatorString, setExpression
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
compileExpression, evaluate, getType
 
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable
clone
 

Method Detail

evaluate

public int evaluate(byte op)
             throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : byte
Returns:
an byte result as in Java programming language
Throws:
TypingException

evaluate

public int evaluate(short op)
             throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : short
Returns:
a short result as in Java programming language
Throws:
TypingException

evaluate

public int evaluate(int op)
             throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : int
Returns:
an int result as in Java programming language
Throws:
TypingException

evaluate

public long evaluate(long op)
              throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : long
Returns:
a long result as in Java programming language
Throws:
TypingException

evaluate

public float evaluate(float op)
               throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : float
Returns:
a float result as in Java programming language
Throws:
TypingException

evaluate

public double evaluate(double op)
                throws TypingException
This fonction evaluate the comaparison between two numerics variables;

Parameters:
op - : double
Returns:
a double result as in Java programming language
Throws:
TypingException