public abstract class Block extends Directive
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Block.Reference
actual class placed in the context, holds the context
being used for the render, as well as the parent (which already holds
everything else we need).
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Node |
block |
protected java.lang.String |
key |
protected Log |
log |
protected int |
maxDepth |
BLOCK, LINE| 构造器和说明 |
|---|
Block() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getType()
Return type of this directive.
|
protected java.lang.String |
id(InternalContextAdapter context)
Creates a string identifying the source and location of the block
definition, and the current template being rendered if that is
different.
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - get the key
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer) |
getColumn, getLine, getName, getScopeName, getTemplateName, isScopeProvided, makeScope, postRender, preRender, render, setLocation, setLocationprotected Node block
protected Log log
protected int maxDepth
protected java.lang.String key
public int getType()
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init 在类中 DirectiveTemplateInitExceptionpublic boolean render(InternalContextAdapter context, java.io.Writer writer)
protected java.lang.String id(InternalContextAdapter context)