super();
}
+ @Override
public Object coerceToType(Object obj, Class<?> type) {
return ELSupport.coerceToType(obj, type);
}
+ @Override
public MethodExpression createMethodExpression(ELContext context,
String expression, Class<?> expectedReturnType,
Class<?>[] expectedParamTypes) {
expectedParamTypes);
}
+ @Override
public ValueExpression createValueExpression(ELContext context,
String expression, Class<?> expectedType) {
if (expectedType == null) {
return builder.createValueExpression(expectedType);
}
+ @Override
public ValueExpression createValueExpression(Object instance,
Class<?> expectedType) {
if (expectedType == null) {
* @see java.util.Hashtable
* @see java.lang.Object#equals(java.lang.Object)
*/
+ @Override
public boolean equals(Object obj) {
return (obj instanceof MethodExpressionImpl && obj.hashCode() == this
.hashCode());
*
* @see javax.el.Expression#getExpressionString()
*/
+ @Override
public String getExpressionString() {
return this.expr;
}
* the cause property of this exception, if available.
* @see javax.el.MethodExpression#getMethodInfo(javax.el.ELContext)
*/
+ @Override
public MethodInfo getMethodInfo(ELContext context)
throws PropertyNotFoundException, MethodNotFoundException,
ELException {
* @see java.util.Hashtable
* @see java.lang.Object#hashCode()
*/
+ @Override
public int hashCode() {
return this.expr.hashCode();
}
* @see javax.el.MethodExpression#invoke(javax.el.ELContext,
* java.lang.Object[])
*/
+ @Override
public Object invoke(ELContext context, Object[] params)
throws PropertyNotFoundException, MethodNotFoundException,
ELException {
out.writeObject(this.varMapper);
}
+ @Override
public boolean isLiteralText() {
return false;
}
this.paramTypes = paramTypes;
}
+ @Override
public MethodInfo getMethodInfo(ELContext context) throws ELException {
return new MethodInfo(this.expr, this.expectedType, this.paramTypes);
}
+ @Override
public Object invoke(ELContext context, Object[] params) throws ELException {
if (this.expectedType != null) {
return ELSupport.coerceToType(this.expr, this.expectedType);
}
}
+ @Override
public String getExpressionString() {
return this.expr;
}
+ @Override
public boolean equals(Object obj) {
return (obj instanceof MethodExpressionLiteral && this.hashCode() == obj.hashCode());
}
+ @Override
public int hashCode() {
return this.expr.hashCode();
}
+ @Override
public boolean isLiteralText() {
return true;
}
*
* @see java.lang.Object#equals(java.lang.Object)
*/
+ @Override
public boolean equals(Object obj) {
return (obj instanceof ValueExpressionImpl && obj.hashCode() == this
.hashCode());
*
* @see javax.el.ValueExpression#getExpectedType()
*/
+ @Override
public Class<?> getExpectedType() {
return this.expectedType;
}
*
* @see javax.el.Expression#getExpressionString()
*/
+ @Override
public String getExpressionString() {
return this.expr;
}
*
* @see javax.el.ValueExpression#getType(javax.el.ELContext)
*/
+ @Override
public Class<?> getType(ELContext context) throws PropertyNotFoundException,
ELException {
EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
*
* @see javax.el.ValueExpression#getValue(javax.el.ELContext)
*/
+ @Override
public Object getValue(ELContext context) throws PropertyNotFoundException,
ELException {
EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
*
* @see java.lang.Object#hashCode()
*/
+ @Override
public int hashCode() {
return this.expr.hashCode();
}
*
* @see javax.el.ValueExpression#isLiteralText()
*/
+ @Override
public boolean isLiteralText() {
try {
return this.getNode() instanceof AstLiteralExpression;
*
* @see javax.el.ValueExpression#isReadOnly(javax.el.ELContext)
*/
+ @Override
public boolean isReadOnly(ELContext context)
throws PropertyNotFoundException, ELException {
EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
* @see javax.el.ValueExpression#setValue(javax.el.ELContext,
* java.lang.Object)
*/
+ @Override
public void setValue(ELContext context, Object value)
throws PropertyNotFoundException, PropertyNotWritableException,
ELException {
out.writeObject(this.varMapper);
}
+ @Override
public String toString() {
return "ValueExpression["+this.expr+"]";
}
this.expectedType = expectedType;
}
+ @Override
public Object getValue(ELContext context) {
if (this.expectedType != null) {
return ELSupport.coerceToType(this.value, this.expectedType);
return this.value;
}
+ @Override
public void setValue(ELContext context, Object value) {
throw new PropertyNotWritableException(MessageFactory.get(
"error.value.literal.write", this.value));
}
+ @Override
public boolean isReadOnly(ELContext context) {
return true;
}
+ @Override
public Class<?> getType(ELContext context) {
return (this.value != null) ? this.value.getClass() : null;
}
+ @Override
public Class<?> getExpectedType() {
return this.expectedType;
}
+ @Override
public String getExpressionString() {
return (this.value != null) ? this.value.toString() : null;
}
+ @Override
public boolean equals(Object obj) {
return (obj instanceof ValueExpressionLiteral && this
.equals((ValueExpressionLiteral) obj));
.equals(ve.value))));
}
+ @Override
public int hashCode() {
return (this.value != null) ? this.value.hashCode() : 0;
}
+ @Override
public boolean isLiteralText() {
return true;
}
public final static class BigDecimalDelegate extends ELArithmetic {
+ @Override
protected Number add(Number num0, Number num1) {
return ((BigDecimal) num0).add((BigDecimal) num1);
}
+ @Override
protected Number coerce(Number num) {
if (num instanceof BigDecimal)
return num;
return new BigDecimal(num.doubleValue());
}
+ @Override
protected Number coerce(String str) {
return new BigDecimal(str);
}
+ @Override
protected Number divide(Number num0, Number num1) {
return ((BigDecimal) num0).divide((BigDecimal) num1,
BigDecimal.ROUND_HALF_UP);
}
+ @Override
protected Number subtract(Number num0, Number num1) {
return ((BigDecimal) num0).subtract((BigDecimal) num1);
}
+ @Override
protected Number mod(Number num0, Number num1) {
return new Double(num0.doubleValue() % num1.doubleValue());
}
+ @Override
protected Number multiply(Number num0, Number num1) {
return ((BigDecimal) num0).multiply((BigDecimal) num1);
}
+ @Override
public boolean matches(Object obj0, Object obj1) {
return (obj0 instanceof BigDecimal || obj1 instanceof BigDecimal);
}
public final static class BigIntegerDelegate extends ELArithmetic {
+ @Override
protected Number add(Number num0, Number num1) {
return ((BigInteger) num0).add((BigInteger) num1);
}
+ @Override
protected Number coerce(Number num) {
if (num instanceof BigInteger)
return num;
return new BigInteger(num.toString());
}
+ @Override
protected Number coerce(String str) {
return new BigInteger(str);
}
+ @Override
protected Number divide(Number num0, Number num1) {
return (new BigDecimal((BigInteger) num0)).divide(new BigDecimal((BigInteger) num1), BigDecimal.ROUND_HALF_UP);
}
+ @Override
protected Number multiply(Number num0, Number num1) {
return ((BigInteger) num0).multiply((BigInteger) num1);
}
+ @Override
protected Number mod(Number num0, Number num1) {
return ((BigInteger) num0).mod((BigInteger) num1);
}
+ @Override
protected Number subtract(Number num0, Number num1) {
return ((BigInteger) num0).subtract((BigInteger) num1);
}
+ @Override
public boolean matches(Object obj0, Object obj1) {
return (obj0 instanceof BigInteger || obj1 instanceof BigInteger);
}
public final static class DoubleDelegate extends ELArithmetic {
+ @Override
protected Number add(Number num0, Number num1) {
// could only be one of these
if (num0 instanceof BigDecimal) {
return new Double(num0.doubleValue() + num1.doubleValue());
}
+ @Override
protected Number coerce(Number num) {
if (num instanceof Double)
return num;
return new Double(num.doubleValue());
}
+ @Override
protected Number coerce(String str) {
return new Double(str);
}
+ @Override
protected Number divide(Number num0, Number num1) {
return new Double(num0.doubleValue() / num1.doubleValue());
}
+ @Override
protected Number mod(Number num0, Number num1) {
return new Double(num0.doubleValue() % num1.doubleValue());
}
+ @Override
protected Number subtract(Number num0, Number num1) {
// could only be one of these
if (num0 instanceof BigDecimal) {
return new Double(num0.doubleValue() - num1.doubleValue());
}
+ @Override
protected Number multiply(Number num0, Number num1) {
// could only be one of these
if (num0 instanceof BigDecimal) {
return new Double(num0.doubleValue() * num1.doubleValue());
}
+ @Override
public boolean matches(Object obj0, Object obj1) {
return (obj0 instanceof Double
|| obj1 instanceof Double
public final static class LongDelegate extends ELArithmetic {
+ @Override
protected Number add(Number num0, Number num1) {
return new Long(num0.longValue() + num1.longValue());
}
+ @Override
protected Number coerce(Number num) {
if (num instanceof Long)
return num;
return new Long(num.longValue());
}
+ @Override
protected Number coerce(String str) {
return new Long(str);
}
+ @Override
protected Number divide(Number num0, Number num1) {
return new Long(num0.longValue() / num1.longValue());
}
+ @Override
protected Number mod(Number num0, Number num1) {
return new Long(num0.longValue() % num1.longValue());
}
+ @Override
protected Number subtract(Number num0, Number num1) {
return new Long(num0.longValue() - num1.longValue());
}
+ @Override
protected Number multiply(Number num0, Number num1) {
return new Long(num0.longValue() * num1.longValue());
}
+ @Override
public boolean matches(Object obj0, Object obj1) {
return (obj0 instanceof Long || obj1 instanceof Long);
}
return this.elContext;
}
+ @Override
public FunctionMapper getFunctionMapper() {
return this.fnMapper;
}
+ @Override
public VariableMapper getVariableMapper() {
return this.varMapper;
}
+ @Override
public Object getContext(Class key) {
return this.elContext.getContext(key);
}
+ @Override
public ELResolver getELResolver() {
return this.elContext.getELResolver();
}
+ @Override
public boolean isPropertyResolved() {
return this.elContext.isPropertyResolved();
}
+ @Override
public void putContext(Class key, Object contextObject) {
this.elContext.putContext(key, contextObject);
}
+ @Override
public void setPropertyResolved(boolean resolved) {
this.elContext.setPropertyResolved(resolved);
}
+ @Override
public Locale getLocale() {
return this.elContext.getLocale();
}
+ @Override
public void setLocale(Locale locale) {
this.elContext.setLocale(locale);
}
/* (non-Javadoc)
* @see javax.el.FunctionMapper#resolveFunction(java.lang.String, java.lang.String)
*/
+ @Override
public Method resolveFunction(String prefix, String localName) {
if (this.memento == null) {
this.memento = new FunctionMapperImpl();
* @see javax.el.FunctionMapper#resolveFunction(java.lang.String,
* java.lang.String)
*/
+ @Override
public Method resolveFunction(String prefix, String localName) {
if (this.functions != null) {
Function f = this.functions.get(prefix + ":" + localName);
/* (non-Javadoc)
* @see java.lang.Object#equals(java.lang.Object)
*/
+ @Override
public boolean equals(Object obj) {
if (obj instanceof Function) {
return this.hashCode() == obj.hashCode();
/* (non-Javadoc)
* @see java.lang.Object#hashCode()
*/
+ @Override
public int hashCode() {
return (this.prefix + this.localName).hashCode();
}
return this.momento;
}
+ @Override
public ValueExpression resolveVariable(String variable) {
ValueExpression expr = this.target.resolveVariable(variable);
if (expr != null) {
return expr;
}
+ @Override
public ValueExpression setVariable(String variable, ValueExpression expression) {
throw new UnsupportedOperationException("Cannot Set Variables on Factory");
}
super();
}
+ @Override
public ValueExpression resolveVariable(String variable) {
return this.vars.get(variable);
}
+ @Override
public ValueExpression setVariable(String variable,
ValueExpression expression) {
return this.vars.put(variable, expression);
super(i);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return Number.class;
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
Object val = this.getValue(ctx);
return (val != null) ? val.getClass() : null;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return String.class;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
StringBuilder sb = new StringBuilder(16);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return this.children[0].getType(ctx);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.children[0].getValue(ctx);
}
+ @Override
public boolean isReadOnly(EvaluationContext ctx)
throws ELException {
return this.children[0].isReadOnly(ctx);
}
+ @Override
public void setValue(EvaluationContext ctx, Object value)
throws ELException {
this.children[0].setValue(ctx, value);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.image;
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return this.children[0].getType(ctx);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.children[0].getValue(ctx);
}
+ @Override
public boolean isReadOnly(EvaluationContext ctx)
throws ELException {
return this.children[0].isReadOnly(ctx);
}
+ @Override
public void setValue(EvaluationContext ctx, Object value)
throws ELException {
this.children[0].setValue(ctx, value);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return Boolean.class;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return Boolean.FALSE;
return this.number;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.getFloatingPoint();
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return this.getFloatingPoint().getClass();
return prefix;
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return m.getReturnType();
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
}
+ @Override
public String toString()
{
return ELParserTreeConstants.jjtNodeName[id] + "[" + this.getOutputName() + "]";
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx) throws ELException {
VariableMapper varMapper = ctx.getVariableMapper();
if (varMapper != null) {
return ctx.getELResolver().getType(ctx, null, this.image);
}
+ @Override
public Object getValue(EvaluationContext ctx) throws ELException {
VariableMapper varMapper = ctx.getVariableMapper();
if (varMapper != null) {
return ctx.getELResolver().getValue(ctx, null, this.image);
}
+ @Override
public boolean isReadOnly(EvaluationContext ctx) throws ELException {
VariableMapper varMapper = ctx.getVariableMapper();
if (varMapper != null) {
return ctx.getELResolver().isReadOnly(ctx, null, this.image);
}
+ @Override
public void setValue(EvaluationContext ctx, Object value)
throws ELException {
VariableMapper varMapper = ctx.getVariableMapper();
ctx.getELResolver().setValue(ctx, null, this.image, value);
}
+ @Override
public Object invoke(EvaluationContext ctx, Class[] paramTypes,
Object[] paramValues) throws ELException {
return this.getMethodExpression(ctx).invoke(ctx.getELContext(), paramValues);
}
+ @Override
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
throws ELException {
return this.getMethodExpression(ctx).getMethodInfo(ctx.getELContext());
return number;
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return this.getInteger().getClass();
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.getInteger();
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx) throws ELException {
return String.class;
}
+ @Override
public Object getValue(EvaluationContext ctx) throws ELException {
return this.image;
}
+ @Override
public void setImage(String image) {
if (image.indexOf('\\') == -1) {
this.image = image;
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return Number.class;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return Boolean.class;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return null;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return null;
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj = this.children[0].getValue(ctx);
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
Object obj0 = this.children[0].getValue(ctx);
return this.string;
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return String.class;
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return this.getString();
}
+ @Override
public void setImage(String image) {
if (image.indexOf('\\') == -1) {
this.image = image;
super(id);
}
+ @Override
public Object getValue(EvaluationContext ctx)
throws ELException {
return Boolean.TRUE;
super(id);
}
+ @Override
public Class<?> getType(EvaluationContext ctx) throws ELException {
Target t = getTarget(ctx);
ctx.setPropertyResolved(false);
return t;
}
+ @Override
public Object getValue(EvaluationContext ctx) throws ELException {
Object base = this.children[0].getValue(ctx);
int propCount = this.jjtGetNumChildren();
return base;
}
+ @Override
public boolean isReadOnly(EvaluationContext ctx) throws ELException {
Target t = getTarget(ctx);
ctx.setPropertyResolved(false);
return ctx.getELResolver().isReadOnly(ctx, t.base, t.property);
}
+ @Override
public void setValue(EvaluationContext ctx, Object value)
throws ELException {
Target t = getTarget(ctx);
}
+ @Override
public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
throws ELException {
Target t = getTarget(ctx);
.getParameterTypes());
}
+ @Override
public Object invoke(EvaluationContext ctx, Class[] paramTypes,
Object[] paramValues) throws ELException {
Target t = getTarget(ctx);
public BooleanNode(int i) {
super(i);
}
+ @Override
public Class<?> getType(EvaluationContext ctx)
throws ELException {
return Boolean.class;
* of the final stack trace, and hence the correct error message
* gets displayed.
*/
+ @Override
public String getMessage() {
if (!specialConstructor) {
return super.getMessage();
* otherwise overriding toString() is probably all you need to do.
*/
+ @Override
public String toString() {
if (this.image != null) {
return ELParserTreeConstants.jjtNodeName[id] + "[" + this.image
/**
* Returns the image.
*/
+ @Override
public String toString()
{
return image;
*
* from this method for such cases in the release version of your parser.
*/
+ @Override
public String getMessage() {
return super.getMessage();
}