Partial fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=48132
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 01:13:12 +0000 (01:13 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 5 Nov 2009 01:13:12 +0000 (01:13 +0000)
Patch provided by sebb with some additional issues reported by Eclispe

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@832950 13f79535-47bb-0310-9956-ffa450edef68

49 files changed:
java/org/apache/el/ExpressionFactoryImpl.java
java/org/apache/el/MethodExpressionImpl.java
java/org/apache/el/MethodExpressionLiteral.java
java/org/apache/el/ValueExpressionImpl.java
java/org/apache/el/ValueExpressionLiteral.java
java/org/apache/el/lang/ELArithmetic.java
java/org/apache/el/lang/EvaluationContext.java
java/org/apache/el/lang/FunctionMapperFactory.java
java/org/apache/el/lang/FunctionMapperImpl.java
java/org/apache/el/lang/VariableMapperFactory.java
java/org/apache/el/lang/VariableMapperImpl.java
java/org/apache/el/parser/ArithmeticNode.java
java/org/apache/el/parser/AstAnd.java
java/org/apache/el/parser/AstBracketSuffix.java
java/org/apache/el/parser/AstChoice.java
java/org/apache/el/parser/AstCompositeExpression.java
java/org/apache/el/parser/AstDeferredExpression.java
java/org/apache/el/parser/AstDiv.java
java/org/apache/el/parser/AstDotSuffix.java
java/org/apache/el/parser/AstDynamicExpression.java
java/org/apache/el/parser/AstEmpty.java
java/org/apache/el/parser/AstEqual.java
java/org/apache/el/parser/AstFalse.java
java/org/apache/el/parser/AstFloatingPoint.java
java/org/apache/el/parser/AstFunction.java
java/org/apache/el/parser/AstGreaterThan.java
java/org/apache/el/parser/AstGreaterThanEqual.java
java/org/apache/el/parser/AstIdentifier.java
java/org/apache/el/parser/AstInteger.java
java/org/apache/el/parser/AstLessThan.java
java/org/apache/el/parser/AstLessThanEqual.java
java/org/apache/el/parser/AstLiteralExpression.java
java/org/apache/el/parser/AstMinus.java
java/org/apache/el/parser/AstMod.java
java/org/apache/el/parser/AstMult.java
java/org/apache/el/parser/AstNegative.java
java/org/apache/el/parser/AstNot.java
java/org/apache/el/parser/AstNotEqual.java
java/org/apache/el/parser/AstNull.java
java/org/apache/el/parser/AstOr.java
java/org/apache/el/parser/AstPlus.java
java/org/apache/el/parser/AstString.java
java/org/apache/el/parser/AstTrue.java
java/org/apache/el/parser/AstValue.java
java/org/apache/el/parser/BooleanNode.java
java/org/apache/el/parser/ParseException.java
java/org/apache/el/parser/SimpleNode.java
java/org/apache/el/parser/Token.java
java/org/apache/el/parser/TokenMgrError.java

index 02263df..8260ab6 100644 (file)
@@ -42,10 +42,12 @@ public class ExpressionFactoryImpl extends ExpressionFactory {
         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) {
@@ -58,6 +60,7 @@ public class ExpressionFactoryImpl extends ExpressionFactory {
                 expectedParamTypes);
     }
 
+    @Override
     public ValueExpression createValueExpression(ELContext context,
             String expression, Class<?> expectedType) {
         if (expectedType == null) {
@@ -68,6 +71,7 @@ public class ExpressionFactoryImpl extends ExpressionFactory {
         return builder.createValueExpression(expectedType);
     }
 
+    @Override
     public ValueExpression createValueExpression(Object instance,
             Class<?> expectedType) {
         if (expectedType == null) {
index ce0c044..f0819af 100644 (file)
@@ -145,6 +145,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
      * @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());
@@ -171,6 +172,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
      * 
      * @see javax.el.Expression#getExpressionString()
      */
+    @Override
     public String getExpressionString() {
         return this.expr;
     }
@@ -197,6 +199,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
      *             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 {
@@ -234,6 +237,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
      * @see java.util.Hashtable
      * @see java.lang.Object#hashCode()
      */
+    @Override
     public int hashCode() {
         return this.expr.hashCode();
     }
@@ -268,6 +272,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
      * @see javax.el.MethodExpression#invoke(javax.el.ELContext,
      *      java.lang.Object[])
      */
+    @Override
     public Object invoke(ELContext context, Object[] params)
             throws PropertyNotFoundException, MethodNotFoundException,
             ELException {
@@ -308,6 +313,7 @@ public final class MethodExpressionImpl extends MethodExpression implements
         out.writeObject(this.varMapper);
     }
 
+    @Override
     public boolean isLiteralText() {
         return false;
     }
index 5e3ed0f..dc771e4 100644 (file)
@@ -50,10 +50,12 @@ public class MethodExpressionLiteral extends MethodExpression implements Externa
         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);
@@ -62,18 +64,22 @@ public class MethodExpressionLiteral extends MethodExpression implements Externa
         }
     }
 
+    @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;
     }
index b8f3430..74d84a8 100644 (file)
@@ -123,6 +123,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see java.lang.Object#equals(java.lang.Object)
      */
+    @Override
     public boolean equals(Object obj) {
         return (obj instanceof ValueExpressionImpl && obj.hashCode() == this
                 .hashCode());
@@ -133,6 +134,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.ValueExpression#getExpectedType()
      */
+    @Override
     public Class<?> getExpectedType() {
         return this.expectedType;
     }
@@ -147,6 +149,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.Expression#getExpressionString()
      */
+    @Override
     public String getExpressionString() {
         return this.expr;
     }
@@ -167,6 +170,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.ValueExpression#getType(javax.el.ELContext)
      */
+    @Override
     public Class<?> getType(ELContext context) throws PropertyNotFoundException,
             ELException {
         EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
@@ -179,6 +183,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.ValueExpression#getValue(javax.el.ELContext)
      */
+    @Override
     public Object getValue(ELContext context) throws PropertyNotFoundException,
             ELException {
         EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
@@ -195,6 +200,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see java.lang.Object#hashCode()
      */
+    @Override
     public int hashCode() {
         return this.expr.hashCode();
     }
@@ -204,6 +210,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.ValueExpression#isLiteralText()
      */
+    @Override
     public boolean isLiteralText() {
         try {
             return this.getNode() instanceof AstLiteralExpression;
@@ -217,6 +224,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * 
      * @see javax.el.ValueExpression#isReadOnly(javax.el.ELContext)
      */
+    @Override
     public boolean isReadOnly(ELContext context)
             throws PropertyNotFoundException, ELException {
         EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
@@ -241,6 +249,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
      * @see javax.el.ValueExpression#setValue(javax.el.ELContext,
      *      java.lang.Object)
      */
+    @Override
     public void setValue(ELContext context, Object value)
             throws PropertyNotFoundException, PropertyNotWritableException,
             ELException {
@@ -257,6 +266,7 @@ public final class ValueExpressionImpl extends ValueExpression implements
         out.writeObject(this.varMapper);
     }
 
+    @Override
     public String toString() {
         return "ValueExpression["+this.expr+"]";
     }
index 0dd6158..72d88e3 100644 (file)
@@ -50,6 +50,7 @@ public final class ValueExpressionLiteral extends ValueExpression implements
         this.expectedType = expectedType;
     }
 
+    @Override
     public Object getValue(ELContext context) {
         if (this.expectedType != null) {
             return ELSupport.coerceToType(this.value, this.expectedType);
@@ -57,27 +58,33 @@ public final class ValueExpressionLiteral extends ValueExpression implements
         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));
@@ -88,10 +95,12 @@ public final class ValueExpressionLiteral extends ValueExpression implements
                 .equals(ve.value))));
     }
 
+    @Override
     public int hashCode() {
         return (this.value != null) ? this.value.hashCode() : 0;
     }
 
+    @Override
     public boolean isLiteralText() {
         return true;
     }
index 0213993..5fb19c8 100644 (file)
@@ -32,10 +32,12 @@ public abstract class ELArithmetic {
 
     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;
@@ -44,27 +46,33 @@ public abstract class ELArithmetic {
             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);
         }
@@ -72,36 +80,44 @@ public abstract class ELArithmetic {
 
     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);
         }
@@ -109,6 +125,7 @@ public abstract class ELArithmetic {
 
     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) {
@@ -119,6 +136,7 @@ public abstract class ELArithmetic {
             return new Double(num0.doubleValue() + num1.doubleValue());
         }
 
+        @Override
         protected Number coerce(Number num) {
             if (num instanceof Double)
                 return num;
@@ -127,18 +145,22 @@ public abstract class ELArithmetic {
             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) {
@@ -149,6 +171,7 @@ public abstract class ELArithmetic {
             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) {
@@ -159,6 +182,7 @@ public abstract class ELArithmetic {
             return new Double(num0.doubleValue() * num1.doubleValue());
         }
 
+        @Override
         public boolean matches(Object obj0, Object obj1) {
             return (obj0 instanceof Double
                     || obj1 instanceof Double
@@ -172,36 +196,44 @@ public abstract class ELArithmetic {
 
     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);
         }
index 94b6980..6924703 100644 (file)
@@ -43,38 +43,47 @@ public final class EvaluationContext extends ELContext {
         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);
     }
index b75ec67..37048ff 100644 (file)
@@ -41,6 +41,7 @@ public class FunctionMapperFactory extends FunctionMapper {
     /* (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();
index 33d271e..8a6bf39 100644 (file)
@@ -47,6 +47,7 @@ public class FunctionMapperImpl extends FunctionMapper implements
      * @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);
@@ -174,6 +175,7 @@ public class FunctionMapperImpl extends FunctionMapper implements
         /* (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();
@@ -184,6 +186,7 @@ public class FunctionMapperImpl extends FunctionMapper implements
         /* (non-Javadoc)
          * @see java.lang.Object#hashCode()
          */
+        @Override
         public int hashCode() {
             return (this.prefix + this.localName).hashCode();
         }
index d511ac5..6a937ea 100644 (file)
@@ -36,6 +36,7 @@ public class VariableMapperFactory extends VariableMapper {
         return this.momento;
     }
 
+    @Override
     public ValueExpression resolveVariable(String variable) {
         ValueExpression expr = this.target.resolveVariable(variable);
         if (expr != null) {
@@ -47,6 +48,7 @@ public class VariableMapperFactory extends VariableMapper {
         return expr;
     }
 
+    @Override
     public ValueExpression setVariable(String variable, ValueExpression expression) {
         throw new UnsupportedOperationException("Cannot Set Variables on Factory");
     }
index 765c60a..f0454e3 100644 (file)
@@ -37,10 +37,12 @@ public class VariableMapperImpl extends VariableMapper implements Externalizable
         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);
index 57fa080..9515271 100644 (file)
@@ -35,6 +35,7 @@ public class ArithmeticNode extends SimpleNode {
         super(i);
     }
 
+    @Override
     public Class<?> getType(EvaluationContext ctx)
             throws ELException {
         return Number.class;
index fb52375..d91e7b7 100644 (file)
@@ -32,6 +32,7 @@ public final class AstAnd extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj = children[0].getValue(ctx);
index c29852d..93216a0 100644 (file)
@@ -32,6 +32,7 @@ public final class AstBracketSuffix extends SimpleNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         return this.children[0].getValue(ctx);
index 5dc10e9..9b3024f 100644 (file)
@@ -32,12 +32,14 @@ public final class AstChoice extends SimpleNode {
         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);
index 8d35373..9fde317 100644 (file)
@@ -33,11 +33,13 @@ public final class AstCompositeExpression extends SimpleNode {
         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);
index 93c3d42..641f3b0 100644 (file)
@@ -32,21 +32,25 @@ public final class AstDeferredExpression extends SimpleNode {
         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);
index 5b0b45a..967e008 100644 (file)
@@ -33,6 +33,7 @@ public final class AstDiv extends ArithmeticNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index f08721e..ea64fec 100644 (file)
@@ -32,6 +32,7 @@ public final class AstDotSuffix extends SimpleNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         return this.image;
index 01787cc..9e6bad8 100644 (file)
@@ -32,21 +32,25 @@ public final class AstDynamicExpression extends SimpleNode {
         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);
index a5732ff..8b188d5 100644 (file)
@@ -35,11 +35,13 @@ public final class AstEmpty extends SimpleNode {
         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);
index 812a85e..c0fbcec 100644 (file)
@@ -32,6 +32,7 @@ public final class AstEqual extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 66e28d3..2bd7d7d 100644 (file)
@@ -32,6 +32,7 @@ public final class AstFalse extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         return Boolean.FALSE;
index 3979a08..d4c5165 100644 (file)
@@ -47,11 +47,13 @@ public final class AstFloatingPoint extends SimpleNode {
         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();
index fee5dff..25cd2d2 100644 (file)
@@ -58,6 +58,7 @@ public final class AstFunction extends SimpleNode {
         return prefix;
     }
 
+    @Override
     public Class<?> getType(EvaluationContext ctx)
             throws ELException {
         
@@ -75,6 +76,7 @@ public final class AstFunction extends SimpleNode {
         return m.getReturnType();
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         
@@ -127,6 +129,7 @@ public final class AstFunction extends SimpleNode {
     }
     
     
+    @Override
     public String toString()
     {
         return ELParserTreeConstants.jjtNodeName[id] + "[" + this.getOutputName() + "]";
index ff36d84..8869ed9 100644 (file)
@@ -32,6 +32,7 @@ public final class AstGreaterThan extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 67743f8..2ffcfe5 100644 (file)
@@ -32,6 +32,7 @@ public final class AstGreaterThanEqual extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index ce95043..5cefbb3 100644 (file)
@@ -37,6 +37,7 @@ public final class AstIdentifier extends SimpleNode {
         super(id);
     }
 
+    @Override
     public Class<?> getType(EvaluationContext ctx) throws ELException {
         VariableMapper varMapper = ctx.getVariableMapper();
         if (varMapper != null) {
@@ -49,6 +50,7 @@ public final class AstIdentifier extends SimpleNode {
         return ctx.getELResolver().getType(ctx, null, this.image);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx) throws ELException {
         VariableMapper varMapper = ctx.getVariableMapper();
         if (varMapper != null) {
@@ -61,6 +63,7 @@ public final class AstIdentifier extends SimpleNode {
         return ctx.getELResolver().getValue(ctx, null, this.image);
     }
 
+    @Override
     public boolean isReadOnly(EvaluationContext ctx) throws ELException {
         VariableMapper varMapper = ctx.getVariableMapper();
         if (varMapper != null) {
@@ -73,6 +76,7 @@ public final class AstIdentifier extends SimpleNode {
         return ctx.getELResolver().isReadOnly(ctx, null, this.image);
     }
 
+    @Override
     public void setValue(EvaluationContext ctx, Object value)
             throws ELException {
         VariableMapper varMapper = ctx.getVariableMapper();
@@ -87,12 +91,14 @@ public final class AstIdentifier extends SimpleNode {
         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());
index 6162c67..b2859eb 100644 (file)
@@ -47,11 +47,13 @@ public final class AstInteger extends SimpleNode {
         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();
index 163fe18..8ff781e 100644 (file)
@@ -32,6 +32,7 @@ public final class AstLessThan extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index c711526..8d41b1f 100644 (file)
@@ -32,6 +32,7 @@ public final class AstLessThanEqual extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 1bc6e95..b28a253 100644 (file)
@@ -32,14 +32,17 @@ public final class AstLiteralExpression extends SimpleNode {
         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;
index 0c58cdc..c64d5f6 100644 (file)
@@ -33,6 +33,7 @@ public final class AstMinus extends ArithmeticNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index a0ba735..dcaa851 100644 (file)
@@ -33,6 +33,7 @@ public final class AstMod extends ArithmeticNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 4c84a4f..8bd9f5b 100644 (file)
@@ -33,6 +33,7 @@ public final class AstMult extends ArithmeticNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 2b1faa0..0e49b90 100644 (file)
@@ -35,11 +35,13 @@ public final class AstNegative extends SimpleNode {
         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);
index 6d60e13..63f1bac 100644 (file)
@@ -32,11 +32,13 @@ public final class AstNot extends SimpleNode {
         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);
index 2d6a0a8..b752e99 100644 (file)
@@ -32,6 +32,7 @@ public final class AstNotEqual extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index df7f825..b13fe83 100644 (file)
@@ -32,11 +32,13 @@ public final class AstNull extends SimpleNode {
         super(id);
     }
 
+    @Override
     public Class<?> getType(EvaluationContext ctx)
             throws ELException {
         return null;
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         return null;
index db5d351..d9d40ac 100644 (file)
@@ -32,6 +32,7 @@ public final class AstOr extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj = this.children[0].getValue(ctx);
index 61ecf6e..8b34681 100644 (file)
@@ -33,6 +33,7 @@ public final class AstPlus extends ArithmeticNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         Object obj0 = this.children[0].getValue(ctx);
index 707a697..ee94bf7 100644 (file)
@@ -41,16 +41,19 @@ public final class AstString extends SimpleNode {
         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;
index 1f61e17..a344d9f 100644 (file)
@@ -32,6 +32,7 @@ public final class AstTrue extends BooleanNode {
         super(id);
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx)
             throws ELException {
         return Boolean.TRUE;
index b27e16d..6291a95 100644 (file)
@@ -52,6 +52,7 @@ public final class AstValue extends SimpleNode {
         super(id);
     }
 
+    @Override
     public Class<?> getType(EvaluationContext ctx) throws ELException {
         Target t = getTarget(ctx);
         ctx.setPropertyResolved(false);
@@ -103,6 +104,7 @@ public final class AstValue extends SimpleNode {
         return t;
     }
 
+    @Override
     public Object getValue(EvaluationContext ctx) throws ELException {
         Object base = this.children[0].getValue(ctx);
         int propCount = this.jjtGetNumChildren();
@@ -122,12 +124,14 @@ public final class AstValue extends SimpleNode {
         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);
@@ -155,6 +159,7 @@ public final class AstValue extends SimpleNode {
     }
 
 
+    @Override
     public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
             throws ELException {
         Target t = getTarget(ctx);
@@ -163,6 +168,7 @@ public final class AstValue extends SimpleNode {
                 .getParameterTypes());
     }
 
+    @Override
     public Object invoke(EvaluationContext ctx, Class[] paramTypes,
             Object[] paramValues) throws ELException {
         Target t = getTarget(ctx);
index e6fd6c8..1191f75 100644 (file)
@@ -32,6 +32,7 @@ public class BooleanNode extends SimpleNode {
     public BooleanNode(int i) {
         super(i);
     }
+    @Override
     public Class<?> getType(EvaluationContext ctx)
             throws ELException {
         return Boolean.class;
index 66eb58a..c92858f 100644 (file)
@@ -96,6 +96,7 @@ public class ParseException extends Exception {
    * of the final stack trace, and hence the correct error message
    * gets displayed.
    */
+  @Override
   public String getMessage() {
     if (!specialConstructor) {
       return super.getMessage();
index 737dc2c..79bef0b 100644 (file)
@@ -84,6 +84,7 @@ public abstract class SimpleNode extends ELSupport implements Node {
      * otherwise overriding toString() is probably all you need to do.
      */
 
+    @Override
     public String toString() {
         if (this.image != null) {
             return ELParserTreeConstants.jjtNodeName[id] + "[" + this.image
index 001732d..d139c14 100644 (file)
@@ -90,6 +90,7 @@ public class Token {
   /**
    * Returns the image.
    */
+  @Override
   public String toString()
   {
      return image;
index f35288a..80c5ec3 100644 (file)
@@ -114,6 +114,7 @@ public class TokenMgrError extends Error
     *
     * from this method for such cases in the release version of your parser.
     */
+   @Override
    public String getMessage() {
       return super.getMessage();
    }