org.objectweb.medor.expression.lib
Class Abs

java.lang.Object
  extended byorg.objectweb.medor.clone.lib.BasicCloneable
      extended byorg.objectweb.medor.expression.lib.BasicExpression
          extended byorg.objectweb.medor.expression.lib.BasicOperator
              extended byorg.objectweb.medor.expression.lib.BasicUnaryOperator
                  extended byorg.objectweb.medor.expression.lib.BasicUnaryArithmeticOperator
                      extended byorg.objectweb.medor.expression.lib.Abs
All Implemented Interfaces:
org.objectweb.medor.clone.api.Cloneable, java.lang.Cloneable, Expression, Operator, java.io.Serializable, UnaryArithmeticOperator, UnaryOperator

public class Abs
extends BasicUnaryArithmeticOperator

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.medor.expression.lib.BasicOperator
expressions, result, verified
 
Fields inherited from class org.objectweb.medor.expression.lib.BasicExpression
logger, type
 
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
 
Constructor Summary
Abs()
           
Abs(Expression e)
           
 
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 org.objectweb.medor.expression.lib.BasicUnaryArithmeticOperator
compileExpression, evaluate
 
Methods inherited from class org.objectweb.medor.expression.lib.BasicUnaryOperator
getExpression, getExpression, getOperandNumber, setExpression, setExpression
 
Methods inherited from class org.objectweb.medor.expression.lib.BasicOperator
clone
 
Methods inherited from class org.objectweb.medor.expression.lib.BasicExpression
getType
 
Methods inherited from class org.objectweb.medor.clone.lib.BasicCloneable
clone, clone, getClone
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.expression.api.UnaryOperator
getExpression, setExpression
 
Methods inherited from interface org.objectweb.medor.expression.api.Operator
getExpression, getOperandNumber, setExpression
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
getType
 
Methods inherited from interface org.objectweb.medor.clone.api.Cloneable
clone
 

Constructor Detail

Abs

public Abs()

Abs

public Abs(Expression e)
Method Detail

evaluate

public int evaluate(int op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

evaluate

public int evaluate(short op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

evaluate

public long evaluate(long op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

evaluate

public float evaluate(float op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

evaluate

public int evaluate(byte op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

evaluate

public double evaluate(double op)
Description copied from interface: UnaryArithmeticOperator
This fonction evaluate the comaparison between two numerics variables;

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

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