org.apache.commons.jexl.parser

Class ASTMethod

public class ASTMethod extends SimpleNode

Method execution.
Constructor Summary
ASTMethod(int id)
Create the node given an id.
ASTMethod(Parser p, int id)
Create a node with the given parser and id.
Method Summary
Objectexecute(Object obj, JexlContext jc)
evaluate a method invocation upon a base object. foo.bar(2)
ObjectjjtAccept(ParserVisitor visitor, Object data)

Constructor Detail

ASTMethod

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

Parameters: id node id.

ASTMethod

public ASTMethod(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 jc)
evaluate a method invocation upon a base object. foo.bar(2)

Parameters: jc the JexlContext to evaluate against. obj The object to have the method invoked.

Returns: the value of the method invocation.

Throws: Exception on any error

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
{@inheritDoc }
Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.