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

VelocimacroProxy a proxy Directive-derived object to fit with the current directive system
Наследование: Directive
Показать файл Открыть проект Примеры использования класса

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

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

The major meat of VelocimacroProxy, init() checks the # of arguments, patches the macro body, renders the macro into an AST, and then initiates the AST, so it is ready for quick rendering. Note that this is only AST dependant stuff. Not context.

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

Renders the macro using the context

VelocimacroProxy ( ) : System
setupMacro ( String callArgs, int callArgTypes ) : bool

basic VM setup. Sets up the proxy args for this use, and parses the tree

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

Метод Описание
getArgArray ( INode node ) : String[]

Gets the args to the VM from the instance-use AST

parseTree ( String callArgs ) : void

parses the macro. We need to do this here, at init time, or else the local-scope template feature is hard to get to work :)

setupProxyArgs ( String callArgs, int callArgTypes ) : void

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

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

The major meat of VelocimacroProxy, init() checks the # of arguments, patches the macro body, renders the macro into an AST, and then initiates the AST, so it is ready for quick rendering. Note that this is only AST dependant stuff. Not context.
public Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void
rs IRuntimeServices
context IInternalContextAdapter
node INode
Результат void

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

Renders the macro using the context
public Render ( IInternalContextAdapter context, TextWriter writer, INode node ) : bool
context IInternalContextAdapter
writer System.IO.TextWriter
node INode
Результат bool

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

public VelocimacroProxy ( ) : System
Результат System

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

basic VM setup. Sets up the proxy args for this use, and parses the tree
public setupMacro ( String callArgs, int callArgTypes ) : bool
callArgs String
callArgTypes int
Результат bool