org.objectweb.medor.expression.lib
Class BasicOperator

java.lang.Object
  extended byorg.objectweb.medor.expression.lib.BasicOperator
All Implemented Interfaces:
java.lang.Cloneable, Expression, Operator, java.io.Serializable
Direct Known Subclasses:
BasicBinaryOperator, BasicUnaryOperator, IndexedLocate, Substring

public abstract class BasicOperator
extends java.lang.Object
implements Operator

Author:
A. Lefebvre
See Also:
Serialized Form

Field Summary
protected  Expression[] expressions
           
protected  VariableOperand result
           
protected  PType type
           
protected  boolean verified
           
 
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
 
Constructor Summary
BasicOperator()
           
 
Method Summary
 Expression getExpression(int i)
           
 PType getType()
          It gets the result type of this expression
 void setExpression(int idx, Expression e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.medor.expression.api.Operator
getOperandNumber, getOperatorString
 
Methods inherited from interface org.objectweb.medor.expression.api.Expression
compileExpression, evaluate
 

Field Detail

result

protected VariableOperand result

verified

protected boolean verified

type

protected PType type

expressions

protected Expression[] expressions
Constructor Detail

BasicOperator

public BasicOperator()
Method Detail

getType

public PType getType()
Description copied from interface: Expression
It gets the result type of this expression

Specified by:
getType in interface Expression
Returns:
a PType object

getExpression

public Expression getExpression(int i)
Specified by:
getExpression in interface Operator

setExpression

public void setExpression(int idx,
                          Expression e)
Specified by:
setExpression in interface Operator