|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.filter.lib.BasicThreeArgsOperator
Field Summary | |
protected Expression |
first
|
protected Operand |
firstResult
|
protected VariableOperand |
result
|
protected Expression |
second
|
protected Operand |
secondResult
|
protected Expression |
third
|
protected Operand |
thirdResult
|
protected PType |
type
|
protected boolean |
verified
|
Fields inherited from interface org.objectweb.medor.filter.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 | |
protected |
BasicThreeArgsOperator()
|
protected |
BasicThreeArgsOperator(Expression first,
Expression second,
Expression third)
|
Method Summary | |
java.lang.Object |
clone()
|
abstract void |
evaluate(ParameterOperand[] pos,
Tuple t)
It evaluates the expression tree and puts the result into the operand result. |
Expression |
getExpression(int idx)
|
Expression |
getFirstExpression()
|
int |
getOperandNumber()
|
Operand |
getResult()
Gets the operand in wich the result will be put in |
Expression |
getSecondExpression()
|
Expression |
getThirdExpression()
|
PType |
getType()
It gets the result type of this expression |
boolean |
isCompiled()
Gets wether this expression is compiled or not |
void |
setExpression(int idx,
Expression exp)
|
void |
setFirstExpression(Expression firstChild)
This method sets the first operand or operator to this expression object. |
void |
setSecondExpression(Expression secondChild)
This method sets the second operand or operator to this expression object. |
void |
setThirdExpression(Expression thirdChild)
This method sets the third operand or operator to this expression object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.medor.filter.api.Operator |
getOperatorString |
Methods inherited from interface org.objectweb.medor.filter.api.Expression |
compileExpression |
Field Detail |
protected PType type
protected Expression first
protected Expression second
protected Expression third
protected VariableOperand result
protected Operand firstResult
protected Operand secondResult
protected Operand thirdResult
protected boolean verified
Constructor Detail |
protected BasicThreeArgsOperator(Expression first, Expression second, Expression third)
protected BasicThreeArgsOperator()
Method Detail |
public int getOperandNumber()
getOperandNumber
in interface Operator
public Expression getExpression(int idx) throws java.lang.ArrayIndexOutOfBoundsException
getExpression
in interface Operator
java.lang.ArrayIndexOutOfBoundsException
public void setExpression(int idx, Expression exp) throws java.lang.ArrayIndexOutOfBoundsException
setExpression
in interface Operator
java.lang.ArrayIndexOutOfBoundsException
public PType getType()
Expression
getType
in interface Expression
public abstract void evaluate(ParameterOperand[] pos, Tuple t) throws MedorException
Expression
evaluate
in interface Expression
pos
- a list of ParameterOperandt
- Tuple
MedorException
- if evaluation errorpublic void setFirstExpression(Expression firstChild) throws java.lang.IllegalStateException
ThreeArgsOperator
setFirstExpression
in interface ThreeArgsOperator
java.lang.IllegalStateException
public void setSecondExpression(Expression secondChild) throws java.lang.IllegalStateException
ThreeArgsOperator
setSecondExpression
in interface ThreeArgsOperator
java.lang.IllegalStateException
public void setThirdExpression(Expression thirdChild) throws java.lang.IllegalStateException
ThreeArgsOperator
setThirdExpression
in interface ThreeArgsOperator
java.lang.IllegalStateException
public Expression getFirstExpression()
getFirstExpression
in interface ThreeArgsOperator
public Expression getSecondExpression()
getSecondExpression
in interface ThreeArgsOperator
public Expression getThirdExpression()
getThirdExpression
in interface ThreeArgsOperator
public boolean isCompiled()
Expression
isCompiled
in interface Expression
public Operand getResult() throws java.lang.IllegalStateException
Expression
getResult
in interface Expression
java.lang.IllegalStateException
- if this expression is not
compiled.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |