C# Class NVelocity.Runtime.Directive.Directive

Base class for all directives used in Velocity.
显示文件 Open project: rasmus-toftdahl-olesen/NVelocity

Protected Properties

Property Type Description
runtimeServices IRuntimeServices

Public Methods

Method Description
CreateNestedDirective ( String name ) : Directive
Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void

How this directive is to be initialized.

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

How this directive is to be rendered

SetLocation ( int line, int column ) : void

Allows the template location to be set

SupportsNestedDirective ( String name ) : bool

Method Details

CreateNestedDirective() public method

public CreateNestedDirective ( String name ) : Directive
name String
return Directive

Init() public method

How this directive is to be initialized.
public Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void
rs IRuntimeServices
context IInternalContextAdapter
node INode
return void

Render() public abstract method

How this directive is to be rendered
public abstract Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context IInternalContextAdapter
writer System.IO.TextWriter
node INode
return bool

SetLocation() public method

Allows the template location to be set
public SetLocation ( int line, int column ) : void
line int
column int
return void

SupportsNestedDirective() public method

public SupportsNestedDirective ( String name ) : bool
name String
return bool

Property Details

runtimeServices protected_oe property

protected IRuntimeServices runtimeServices
return IRuntimeServices