|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.jexpression.util.PrintHandler
public class PrintHandler
Tratador que imprime a ordem das avaliações de uma expressão. NOTA: Esse tratador tem a única finalidade de debug.
| Constructor Summary | |
|---|---|
PrintHandler()
|
|
| Method Summary | |
|---|---|
Object |
handleAnd(Object first,
Object second)
Callback da operação '&&'. |
Object |
handleDivision(Object first,
Object second)
Callback de operação '/'. |
Object |
handleDouble(Double value)
Callback para valores Double. |
Object |
handleEqual(Object first,
Object second)
Callback da operação '=='. |
Object |
handleField(Object object,
String field)
Callback de acesso a um campo de objeto. |
Object |
handleFunctionCall(String functionName,
List<Object> params)
Callback de chamada de função. |
Object |
handleGreater(Object first,
Object second)
Callback da operação '>'. |
Object |
handleGreaterEqual(Object first,
Object second)
Callback da operação '>='. |
Object |
handleIndex(Object object,
Object index)
Callback de indexação. |
Object |
handleLower(Object first,
Object second)
Callback da operação '<'. |
Object |
handleLowerEqual(Object first,
Object second)
Callback da operação '<='. |
Object |
handleMinus(Object first,
Object second)
Callback de operação '-'. |
Object |
handleNot(Object object)
Callback do operador unário '!'. |
Object |
handleNotEqual(Object first,
Object second)
Callback da operação '!='. |
Object |
handleOr(Object first,
Object second)
Callback de operação '||'. |
Object |
handlePlus(Object first,
Object second)
Callback da operação '+'. |
Object |
handlePow(Object first,
Object second)
Callback da operação '^'. |
Object |
handleQuestion(Object condition,
Object then,
Object otherwise)
Callback do operador ternário if-then-else (a ? b : c) |
Object |
handleTimes(Object first,
Object second)
Callback de operação '*'. |
Object |
handleUnaryMinus(Object object)
Callback do operador unário '-'. |
Object |
handleVar(String name)
Callback de variável. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintHandler()
| Method Detail |
|---|
public Object handleDouble(Double value)
throws JExpressionException
Double.
handleDouble in interface JExpressionHandlervalue - valor.
JExpressionException
public Object handlePlus(Object first,
Object second)
handlePlus in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleMinus(Object first,
Object second)
handleMinus in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleTimes(Object first,
Object second)
handleTimes in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleDivision(Object first,
Object second)
handleDivision in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handlePow(Object first,
Object second)
handlePow in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleOr(Object first,
Object second)
handleOr in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleAnd(Object first,
Object second)
handleAnd in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleEqual(Object first,
Object second)
handleEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleNotEqual(Object first,
Object second)
handleNotEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleGreater(Object first,
Object second)
handleGreater in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleGreaterEqual(Object first,
Object second)
handleGreaterEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleLower(Object first,
Object second)
handleLower in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleLowerEqual(Object first,
Object second)
handleLowerEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.
public Object handleQuestion(Object condition,
Object then,
Object otherwise)
handleQuestion in interface JExpressionHandlercondition - condição.then - ação.otherwise - caso contrário.
public Object handleIndex(Object object,
Object index)
handleIndex in interface JExpressionHandlerobject - objeto a ser indexado.index - índice.
public Object handleUnaryMinus(Object object)
handleUnaryMinus in interface JExpressionHandlerobject - operando.
public Object handleNot(Object object)
handleNot in interface JExpressionHandlerobject - operando.
public Object handleVar(String name)
handleVar in interface JExpressionHandlername - nome da variável.
public Object handleField(Object object,
String field)
handleField in interface JExpressionHandlerobject - primeiro operando.field - campo.
public Object handleFunctionCall(String functionName,
List<Object> params)
handleFunctionCall in interface JExpressionHandlerfunctionName - nome função.params - lista de parâmetros.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||