On 26/03/2010, hen...@apache.org <hen...@apache.org> wrote:
> Author: henrib
>  Date: Fri Mar 26 15:08:12 2010
>  New Revision: 927903
>
>  URL: http://svn.apache.org/viewvc?rev=927903&view=rev
>  Log:
>  Fix JEXL-100;
>  +
>  +public class ASTIntegerLiteral extends JexlNode implements 
> JexlNode.Literal<Integer> {
>  +    /** The type literal value. */
>  +    private Integer literal;

I think this could/should be final.

>  +    public ASTIntegerLiteral(int id) {
>  +        super(id);
>  +    }
>  +
>  +    public ASTIntegerLiteral(Parser p, int id) {
>  +        super(p, id);
>  +    }
>  +
>  +    public Integer getLiteral() {
>  +        if (literal == null) {
>  +            literal = Integer.valueOf(image);
>  +        }
>  +        return literal;
>  +    }
>  +
>  +    /** Accept the visitor. **/
>  +    public Object jjtAccept(ParserVisitor visitor, Object data) {
>  +        return visitor.visit(this, data);
>  +    }
>  +}
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to