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| Constructor and Description |
|---|
Include() |
| Modifier and Type | Method and Description |
|---|---|
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,
Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
getInputEncodingcheckArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, makeScope, postRender, preRender, setLocation, setLocationpublic String getName()
public int getType()
public boolean isScopeProvided()
isScopeProvided in class Directivepublic void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init in class Directivers - context - node - TemplateInitExceptionpublic boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException, MethodInvocationException, ResourceNotFoundException
render in class Directivecontext - writer - node - IOExceptionMethodInvocationExceptionResourceNotFoundExceptionCopyright © 2000–2019 The Apache Software Foundation. All rights reserved.