org.apache.commons.jexl.parser

Class ASTBlock

public class ASTBlock extends SimpleNode

{ code }, a block of statements enclosed in curly braces.
Constructor Summary
ASTBlock(int id)
Create the node given an id.
ASTBlock(Parser p, int id)
Create a node with the given parser and id.
Method Summary
ObjectjjtAccept(ParserVisitor visitor, Object data)
Objectvalue(JexlContext context)

Constructor Detail

ASTBlock

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

Parameters: id node id.

ASTBlock

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

Parameters: p a parser. id node id.

Method Detail

jjtAccept

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

value

public Object value(JexlContext context)

Parameters: context the JexlContext to execute against.

Returns: the value of the block. Execute all statements inside and return the value of the last.

Throws: Exception on any error.

Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.