public class Include extends InputBase
Pluggable directive that handles the #include() statement in VTL. This #include() can take multiple arguments of either StringLiteral or Reference.
Notes:
BLOCK, LINE| 构造器和说明 |
|---|
Include() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getName()
Return name of this directive.
|
int |
getType()
Return type of this directive.
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - init the tree and get the elementKey from
the AST
|
boolean |
isScopeProvided()
Since there is no processing of content,
there is never a need for an internal scope.
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
getInputEncodinggetColumn, getLine, getScopeName, getTemplateName, makeScope, postRender, preRender, setLocation, setLocationpublic java.lang.String getName()
public int getType()
public boolean isScopeProvided()
isScopeProvided 在类中 Directivepublic void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init 在类中 Directivers - context - node - TemplateInitExceptionpublic boolean render(InternalContextAdapter context, java.io.Writer writer, Node node) throws java.io.IOException, MethodInvocationException, ResourceNotFoundException
render 在类中 Directivecontext - writer - node - java.io.IOExceptionMethodInvocationExceptionResourceNotFoundException