NVelocity.Runtime.Parser.Node
Class ASTIdentifier

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. *

Fields inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
children, first, id, info, invalid, last, parent, parser, rsvc, state

Constructor Summary
ASTIdentifier(int id)
ASTIdentifier(NVelocity.Runtime.Parser.Parser p, int id)

Properties inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
Column, FirstToken, Info, LastToken, Line, Type

Method Summary
object execute(object o, NVelocity.Context.InternalContextAdapter context)
         invokes the method on the object passed in
object init(NVelocity.Context.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.
object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor, object data)
        Accept the visitor. *

Methods inherited from class NVelocity.Runtime.Parser.Node.SimpleNode
childrenAccept, dump, evaluate, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setInvalid, toString, value_Renamed

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Constructor Detail

ASTIdentifier

public ASTIdentifier(int id)


ASTIdentifier

public ASTIdentifier(NVelocity.Runtime.Parser.Parser p,
                     int id)

Method Detail

execute

public object execute(object o,
                      NVelocity.Context.InternalContextAdapter context)

invokes the method on the object passed in


init

public object init(NVelocity.Context.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(NVelocity.Runtime.Parser.Node.ParserVisitor visitor,
                        object data)

Accept the visitor. *