NVelocity.Runtime.Parser.Node
Interface INode

All AST nodes must implement this interface. It provides basic machinery for constructing the parent and child relationships between nodes.

Property Summary
int Column
NVelocity.Runtime.Parser.Token FirstToken
int Info
NVelocity.Runtime.Parser.Token LastToken
int Line
int Type

Method Summary
object childrenAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor, object data)
bool evaluate(NVelocity.Context.InternalContextAdapter context)
object execute(object o, NVelocity.Context.InternalContextAdapter context)
object init(NVelocity.Context.InternalContextAdapter context, object data)
bool isInvalid()
object jjtAccept(NVelocity.Runtime.Parser.Node.ParserVisitor visitor, object data)
        Accept the visitor. *
void jjtAddChild(NVelocity.Runtime.Parser.Node.INode n, int i)
         This method tells the node to add its argument to the node's list of children.
void jjtClose()
         This method is called after all the child nodes have been added.
NVelocity.Runtime.Parser.Node.INode jjtGetChild(int i)
         This method returns a child node. The children are numbered from zero, left to right.
int jjtGetNumChildren()
        Return the number of children the node has.
NVelocity.Runtime.Parser.Node.INode jjtGetParent()
void jjtOpen()
         This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.
void jjtSetParent(NVelocity.Runtime.Parser.Node.INode n)
         This pair of methods are used to inform the node of its parent.
string literal()
bool render(NVelocity.Context.InternalContextAdapter context, System.IO.TextWriter writer)
void setInvalid()
object value_Renamed(NVelocity.Context.InternalContextAdapter context)


Property Detail

Column

public int Column


FirstToken

public NVelocity.Runtime.Parser.Token FirstToken


Info

public int Info


LastToken

public NVelocity.Runtime.Parser.Token LastToken


Line

public int Line


Type

public int Type

Method Detail

childrenAccept

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


evaluate

public bool evaluate(NVelocity.Context.InternalContextAdapter context)


execute

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


init

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


isInvalid

public bool isInvalid()


jjtAccept

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

Accept the visitor. *


jjtAddChild

public void jjtAddChild(NVelocity.Runtime.Parser.Node.INode n,
                        int i)

This method tells the node to add its argument to the node's list of children.


jjtClose

public void jjtClose()

This method is called after all the child nodes have been added.


jjtGetChild

public NVelocity.Runtime.Parser.Node.INode jjtGetChild(int i)

This method returns a child node. The children are numbered from zero, left to right.


jjtGetNumChildren

public int jjtGetNumChildren()

Return the number of children the node has.


jjtGetParent

public NVelocity.Runtime.Parser.Node.INode jjtGetParent()


jjtOpen

public void jjtOpen()

This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.


jjtSetParent

public void jjtSetParent(NVelocity.Runtime.Parser.Node.INode n)

This pair of methods are used to inform the node of its parent.


literal

public string literal()


render

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


setInvalid

public void setInvalid()


value_Renamed

public object value_Renamed(NVelocity.Context.InternalContextAdapter context)