NVelocity.Runtime.Directive
Class Foreach

Foreach directive used for moving through arrays, or objects that provide an Iterator.

Fields inherited from class NVelocity.Runtime.Directive.Directive
rsvc

Constructor Summary
Foreach()
        Initializes a new instance of the Foreach class.

Property Summary
string Name
int Type

Properties inherited from class NVelocity.Runtime.Directive.Directive
Column, Line

Method Summary
void init(NVelocity.Runtime.RuntimeServices rs, NVelocity.Context.InternalContextAdapter context, NVelocity.Runtime.Parser.Node.INode node)
         simple init - init the tree and get the elementKey from the AST
bool render(NVelocity.Context.InternalContextAdapter context, System.IO.TextWriter writer, NVelocity.Runtime.Parser.Node.INode node)
         renders the #foreach() block

Methods inherited from class NVelocity.Runtime.Directive.Directive
setLocation

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


Constructor Detail

Foreach

public Foreach()

Initializes a new instance of the Foreach class.

Property Detail

Name

public string Name


Type

public int Type

Method Detail

init

public void init(NVelocity.Runtime.RuntimeServices rs,
                 NVelocity.Context.InternalContextAdapter context,
                 NVelocity.Runtime.Parser.Node.INode node)

simple init - init the tree and get the elementKey from the AST


render

public bool render(NVelocity.Context.InternalContextAdapter context,
                   System.IO.TextWriter writer,
                   NVelocity.Runtime.Parser.Node.INode node)

renders the #foreach() block