public class VarNamesHandler extends Object implements JExpressionHandler
| Constructor and Description |
|---|
VarNamesHandler()
Construtor.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
handleString(String value)
Callback para valores
String. |
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.
|
public Object handleDouble(Double value) throws JExpressionException
Double.handleDouble in interface JExpressionHandlervalue - valor.JExpressionExceptionpublic Object handleString(String value) throws JExpressionException
String.handleString in interface JExpressionHandlervalue - valor.JExpressionExceptionpublic Object handlePlus(Object first, Object second) throws JExpressionException
+.handlePlus in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleMinus(Object first, Object second) throws JExpressionException
-.handleMinus in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleTimes(Object first, Object second) throws JExpressionException
*.handleTimes in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleDivision(Object first, Object second) throws JExpressionException
/.handleDivision in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handlePow(Object first, Object second) throws JExpressionException
^.handlePow in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleOr(Object first, Object second) throws JExpressionException
||.handleOr in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleAnd(Object first, Object second) throws JExpressionException
&&.handleAnd in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleEqual(Object first, Object second) throws JExpressionException
==.handleEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleNotEqual(Object first, Object second) throws JExpressionException
!=.handleNotEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleGreater(Object first, Object second) throws JExpressionException
>.handleGreater in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleGreaterEqual(Object first, Object second) throws JExpressionException
>=.handleGreaterEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleLower(Object first, Object second) throws JExpressionException
<.handleLower in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleLowerEqual(Object first, Object second) throws JExpressionException
<=.handleLowerEqual in interface JExpressionHandlerfirst - primeiro operando.second - segundo operando.JExpressionExceptionpublic Object handleQuestion(Object condition, Object then, Object otherwise) throws JExpressionException
(a ? b : c)handleQuestion in interface JExpressionHandlercondition - condição.then - ação.otherwise - caso contrário.JExpressionExceptionpublic Object handleUnaryMinus(Object object) throws JExpressionException
-.handleUnaryMinus in interface JExpressionHandlerobject - operando.JExpressionExceptionpublic Object handleNot(Object object) throws JExpressionException
!.handleNot in interface JExpressionHandlerobject - operando.JExpressionExceptionpublic Object handleVar(String name) throws JExpressionException
handleVar in interface JExpressionHandlername - nome da variável.JExpressionExceptionpublic Object handleIndex(Object object, Object index) throws JExpressionException
handleIndex in interface JExpressionHandlerobject - objeto a ser indexado.index - índice.JExpressionExceptionpublic Object handleField(Object object, String field) throws JExpressionException
handleField in interface JExpressionHandlerobject - primeiro operando.field - campo.JExpressionExceptionpublic Object handleFunctionCall(String functionName, List<Object> params) throws JExpressionException
handleFunctionCall in interface JExpressionHandlerfunctionName - nome função.params - lista de parâmetros.JExpressionExceptionCopyright © 2007–2017 Tecgraf/PUC-Rio. All rights reserved.