public abstract class NumericExpression extends ExpressionNode implements NodeType
Modifier and Type | Field and Description |
---|---|
protected Class |
_getterClass |
_children, _id, _parent, _parser
Constructor and Description |
---|
NumericExpression(int id) |
NumericExpression(OgnlParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
String |
coerceToNumeric(String source,
OgnlContext context,
Node child) |
Class |
getGetterClass()
The type returned from the expression - if any.
|
Class |
getSetterClass()
The type used to set the value - if any.
|
String |
toGetSourceString(OgnlContext context,
Object target)
Expected to return a java source representation of itself such that
it could be turned into a literal java expression to be compiled and
executed for
ExpressionAccessor.get(OgnlContext, Object) calls. |
getExpressionOperator, isConstant, isNodeConstant, toSetSourceString, toString
dump, evaluateGetValueBody, evaluateSetValueBody, flattenTree, getAccessor, getIndexInParent, getNextSibling, getValue, getValueBody, isNodeSimpleProperty, isSimpleNavigationChain, isSimpleProperty, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, lastChild, setAccessor, setValue, setValueBody, toString
protected Class _getterClass
public NumericExpression(int id)
public NumericExpression(OgnlParser p, int id)
public Class getGetterClass()
NodeType
getGetterClass
in interface NodeType
public Class getSetterClass()
NodeType
getSetterClass
in interface NodeType
public String toGetSourceString(OgnlContext context, Object target)
JavaSource
ExpressionAccessor.get(OgnlContext, Object)
calls.toGetSourceString
in interface JavaSource
toGetSourceString
in class ExpressionNode
public String coerceToNumeric(String source, OgnlContext context, Node child)
Copyright © 1997–2021 The Apache Software Foundation. All rights reserved.