C# Класс NVelocity.Runtime.Directive.Foreach

Foreach directive used for moving through arrays, or objects that provide an Iterator.
Наследование: Directive
Показать файл Открыть проект

Открытые методы

Метод Описание
CreateNestedDirective ( String name ) : Directive
Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void

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

Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool

renders the #foreach() block

SupportsNestedDirective ( String name ) : bool

Приватные методы

Метод Описание
Foreach ( ) : System
GetIterator ( IInternalContextAdapter context, INode node ) : IEnumerator

returns an Iterator to the collection in the #foreach()

PrepareSections ( INode node ) : INode[][]
ProcessSection ( ForeachSectionEnum sectionEnumType, INode sections, IInternalContextAdapter context, TextWriter writer ) : void

Описание методов

CreateNestedDirective() публичный Метод

public CreateNestedDirective ( String name ) : Directive
name String
Результат Directive

Init() публичный Метод

simple init - init the tree and get the elementKey from the AST
public Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void
rs IRuntimeServices
context IInternalContextAdapter
node INode
Результат void

Render() публичный Метод

renders the #foreach() block
public Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context IInternalContextAdapter
writer System.IO.TextWriter
node INode
Результат bool

SupportsNestedDirective() публичный Метод

public SupportsNestedDirective ( String name ) : bool
name String
Результат bool