Метод | Описание | |
---|---|---|
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, |
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 |
public Init ( IRuntimeServices rs, IInternalContextAdapter context, INode node ) : void | ||
rs | IRuntimeServices | |
context | IInternalContextAdapter | |
node | INode | |
Результат | void |
public Render ( IInternalContextAdapter context, |
||
context | IInternalContextAdapter | |
writer | ||
node | INode | |
Результат | bool |
public setupMacro ( String callArgs, int callArgTypes ) : bool | ||
callArgs | String | |
callArgTypes | int | |
Результат | bool |