org.apache.commons.jexl.parser

Class ASTIntegerLiteral

public class ASTIntegerLiteral extends SimpleNode

represents an integer.

Version: $Id: ASTIntegerLiteral.java 398202 2006-04-29 16:40:34Z dion $

Field Summary
protected Integerval
literal value.
Constructor Summary
ASTIntegerLiteral(int id)
Create the node given an id.
ASTIntegerLiteral(Parser p, int id)
Create a node with the given parser and id.
Method Summary
Objectexecute(Object obj, JexlContext ctx)
Part of reference resolution - wierd... in JSTL EL you can have foo.2 which is equiv to foo[2] it appears...
ObjectjjtAccept(ParserVisitor visitor, Object data)
Objectvalue(JexlContext jc)

Field Detail

val

protected Integer val
literal value.

Constructor Detail

ASTIntegerLiteral

public ASTIntegerLiteral(int id)
Create the node given an id.

Parameters: id node id.

ASTIntegerLiteral

public ASTIntegerLiteral(Parser p, int id)
Create a node with the given parser and id.

Parameters: p a parser. id node id.

Method Detail

execute

public Object execute(Object obj, JexlContext ctx)
Part of reference resolution - wierd... in JSTL EL you can have foo.2 which is equiv to foo[2] it appears...

Parameters: obj the object to evaluate against. ctx the JexlContext.

Returns: the resulting value.

Throws: Exception on any error.

See Also: ASTArrayAccess

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
{@inheritDoc }

value

public Object value(JexlContext jc)
{@inheritDoc }
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.