NVelocity.Runtime.Parser.Node
Class ASTReference

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

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

Property Summary
string Literal
string RootString

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

Method Summary
bool evaluate(NVelocity.Context.InternalContextAdapter context)
         Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not null *
object execute(object o, NVelocity.Context.InternalContextAdapter context)
         gets an Object that 'is' the value of the reference *
object getVariableValue(NVelocity.Context.IContext context, string variable)
object init(NVelocity.Context.InternalContextAdapter context, object data)
object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor, object data)
        Accept the visitor.
string literal()
bool render(NVelocity.Context.InternalContextAdapter context, System.IO.TextWriter writer)
         gets the value of the reference and outputs it to the writer. *
bool setValue(NVelocity.Context.InternalContextAdapter context, object value_Renamed)
         Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference() *
object value_Renamed(NVelocity.Context.InternalContextAdapter context)

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

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


Constructor Detail

ASTReference

public ASTReference(int id)


ASTReference

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

Property Detail

Literal

public string Literal


RootString

public string RootString

Method Detail

evaluate

public bool evaluate(NVelocity.Context.InternalContextAdapter context)

Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not null *

Parameters:
context - context to compute value with

execute

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

gets an Object that 'is' the value of the reference *

Parameters:
o - unused Object parameter
context - context used to generate value

getVariableValue

public object getVariableValue(NVelocity.Context.IContext context,
                               string variable)


init

public object init(NVelocity.Context.InternalContextAdapter context,
                   object data)


jjtAccept

public object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor,
                        object data)

Accept the visitor.


literal

public string literal()


render

public bool render(NVelocity.Context.InternalContextAdapter context,
                   System.IO.TextWriter writer)

gets the value of the reference and outputs it to the writer. *

Parameters:
context - context of data to use in getting value
writer - writer to render to

setValue

public bool setValue(NVelocity.Context.InternalContextAdapter context,
                     object value_Renamed)

Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference() *

Parameters:
context - context object containing this reference
value - Object to set as value
Returns:
true if successful, false otherwise

value_Renamed

public object value_Renamed(NVelocity.Context.InternalContextAdapter context)