|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hardcode.gdbms.engine.instruction.Adapter com.hardcode.gdbms.engine.instruction.AbstractExpression com.hardcode.gdbms.engine.instruction.OrExprAdapter
public class OrExprAdapter
Adaptador sobre las expresiones or del arbol sintáctico
Constructor Summary | |
---|---|
OrExprAdapter()
|
Method Summary | |
---|---|
Value |
evaluate(long row)
Evalua expresión invocando el método adecuado en función del tipo de expresion (suma, producto, ...) de los objetos Value de la expresion, de las subexpresiones y de los objetos Field |
java.lang.String |
getFieldName()
Obtiene el nombre del campo en el que consiste la expresión. |
boolean |
isLiteral()
Indica si los operandos de esta expresión son siempre los mismos o pueden cambiar. |
void |
simplify()
Simplifica las expresiones del árbol de adaptadores |
Methods inherited from class com.hardcode.gdbms.engine.instruction.AbstractExpression |
---|
evaluateExpression, getLiteralCondition, isAggregated |
Methods inherited from class com.hardcode.gdbms.engine.instruction.Adapter |
---|
getChilds, getEntity, getInstructionContext, getParent, replaceChild, setChilds, setEntity, setInstructionContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hardcode.gdbms.engine.instruction.Expression |
---|
evaluateExpression, isAggregated |
Constructor Detail |
---|
public OrExprAdapter()
Method Detail |
---|
public Value evaluate(long row) throws EvaluationException
evaluate
in interface Expression
row
- Fila en la que se evalúa la expresión, en este caso no es
necesario, pero las subexpresiones sobre las que se opera pueden
ser campos de una tabla, en cuyo caso si es necesario
SemanticException
- Si se produce un error semántico
DriverException
- Si se produce un error de I/O
EvaluationException
- Si se produce algún error semánticopublic java.lang.String getFieldName()
Expression
getFieldName
in interface Expression
Expression.getFieldName()
public boolean isLiteral()
Expression
isLiteral
in interface Expression
Expression.isLiteral()
public void simplify()
Expression
simplify
in interface Expression
Expression.simplify()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |