org.apache.velocity.runtime.parser.node

Class ASTIdentifier

public class ASTIdentifier extends SimpleNode

ASTIdentifier.java Method support for identifiers : $foo mainly used by ASTRefrence Introspection is now moved to 'just in time' or at render / execution time. There are many reasons why this has to be done, but the primary two are thread safety, to remove any context-derived information from class member variables.

Version: $Id: ASTIdentifier.java,v 1.19.4.1 2004/03/03 23:22:58 geirm Exp $

Author: Jason van Zyl Geir Magnusson Jr.

Field Summary
Stringidentifier
protected InfouberInfo
This is really immutable after the init, so keep one for this node
Constructor Summary
ASTIdentifier(int id)
ASTIdentifier(Parser p, int id)
Method Summary
Objectexecute(Object o, InternalContextAdapter context)
invokes the method on the object passed in
Objectinit(InternalContextAdapter context, Object data)
simple init - don't do anything that is context specific. just get what we need from the AST, which is static.
ObjectjjtAccept(ParserVisitor visitor, Object data)
Accept the visitor.

Field Detail

identifier

private String identifier

uberInfo

protected Info uberInfo
This is really immutable after the init, so keep one for this node

Constructor Detail

ASTIdentifier

public ASTIdentifier(int id)

ASTIdentifier

public ASTIdentifier(Parser p, int id)

Method Detail

execute

public Object execute(Object o, InternalContextAdapter context)
invokes the method on the object passed in

init

public Object init(InternalContextAdapter context, Object data)
simple init - don't do anything that is context specific. just get what we need from the AST, which is static.

jjtAccept

public Object jjtAccept(ParserVisitor visitor, Object data)
Accept the visitor. *
Copyright B) 2002 Apache Software Foundation. All Rights Reserved.