C# 클래스 NVelocity.Runtime.Directive.Foreach

Foreach directive used for moving through arrays, or objects that provide an Iterator.
상속: Directive
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity

공개 메소드들

메소드 설명
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