|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.medor.filter.lib.Like
Field Summary |
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 | |
Like(Expression str,
Expression pattern)
|
|
Like(Expression str,
Expression pattern,
boolean not)
|
|
Like(Expression str,
Expression pattern,
Expression escape)
|
|
Like(Expression str,
Expression pattern,
Expression escape,
boolean not)
|
Method Summary | |
java.lang.Object |
clone()
|
void |
compileExpression()
Checks the semantic integrity of an expression. |
void |
evaluate(ParameterOperand[] values,
Tuple t)
It evaluates the expression tree and puts the result into the operand result. |
Expression |
getExpression(int idx)
|
int |
getOperandNumber()
|
java.lang.String |
getOperatorString()
Returns the String representing the operator in Java |
Operand |
getResult()
Gets the operand in wich the result will be put in |
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)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Like(Expression str, Expression pattern, Expression escape)
public Like(Expression str, Expression pattern, Expression escape, boolean not)
public Like(Expression str, Expression pattern)
public Like(Expression str, Expression pattern, boolean not)
Method Detail |
public java.lang.String getOperatorString()
Operator
getOperatorString
in interface Operator
public PType getType()
Expression
getType
in interface Expression
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface Cloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public int getOperandNumber()
getOperandNumber
in interface Operator
public boolean isCompiled()
Expression
isCompiled
in interface Expression
public Expression getExpression(int idx) throws java.lang.ArrayIndexOutOfBoundsException
getExpression
in interface Operator
java.lang.ArrayIndexOutOfBoundsException
public void compileExpression() throws TypingException, MalformedExpressionException
Expression
compileExpression
in interface Expression
MalformedExpressionException
- if syntax error
TypingException
- when incompatible types error
occures.public void setExpression(int idx, Expression exp) throws java.lang.ArrayIndexOutOfBoundsException
setExpression
in interface Operator
java.lang.ArrayIndexOutOfBoundsException
public Operand getResult() throws java.lang.IllegalStateException
Expression
getResult
in interface Expression
java.lang.IllegalStateException
- if this expression is not
compiled.public void evaluate(ParameterOperand[] values, Tuple t) throws MedorException, java.lang.IllegalStateException
Expression
evaluate
in interface Expression
values
- a list of ParameterOperandt
- Tuple
java.lang.IllegalStateException
- if this expression is not
compiled.
MedorException
- if evaluation error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |