public class Define extends Block
Block.ReferenceBLOCK, LINE| 构造器和说明 |
|---|
Define() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getName()
Return name of this directive.
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - get the key
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
directive.render() simply makes an instance of the Block inner class
and places it into the context as indicated.
|
getColumn, getLine, getScopeName, getTemplateName, isScopeProvided, makeScope, postRender, preRender, setLocation, setLocationpublic java.lang.String getName()
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init 在类中 BlockTemplateInitExceptionpublic boolean render(InternalContextAdapter context, java.io.Writer writer, Node node)