public class ConstantExpressionsInterpreter
extends java.lang.Object
Constructor and Description |
---|
ConstantExpressionsInterpreter() |
Modifier and Type | Method and Description |
---|---|
protected int |
_plus(java.lang.Integer a,
java.lang.Integer b) |
protected java.lang.Object |
_plus(java.lang.Object a,
java.lang.Object b) |
protected java.lang.Object |
_plus(java.lang.String a,
java.lang.Object b) |
java.lang.Object |
evaluate(XExpression expression,
LightweightTypeReference expectedType)
Very limited poor-man's interpreter for annotation values.
|
java.lang.Object |
plus(java.lang.Object a,
java.lang.Object b) |
public java.lang.Object evaluate(XExpression expression, LightweightTypeReference expectedType)
expression
- the expression to be evaluatedexpectedType
- the expected type, or null
if no type expectation exists.protected java.lang.Object _plus(java.lang.Object a, java.lang.Object b)
protected int _plus(java.lang.Integer a, java.lang.Integer b)
protected java.lang.Object _plus(java.lang.String a, java.lang.Object b)
public java.lang.Object plus(java.lang.Object a, java.lang.Object b)