|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.directive.Directive org.apache.velocity.runtime.directive.InputBase org.apache.velocity.runtime.directive.Include
public class Include
Pluggable directive that handles the #include() statement in VTL. This #include() can take multiple arguments of either StringLiteral or Reference.
Notes:
Field Summary |
---|
Fields inherited from class org.apache.velocity.runtime.directive.Directive |
---|
rsvc |
Fields inherited from interface org.apache.velocity.runtime.directive.DirectiveConstants |
---|
BLOCK, LINE |
Constructor Summary | |
---|---|
Include()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.velocity.runtime.directive.InputBase |
---|
getInputEncoding |
Methods inherited from class org.apache.velocity.runtime.directive.Directive |
---|
getColumn, getLine, getScopeName, getTemplateName, makeScope, postRender, preRender, setLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Include()
Method Detail |
---|
public String getName()
getName
in class Directive
public int getType()
getType
in class Directive
public boolean isScopeProvided()
isScopeProvided
in class Directive
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init
in class Directive
rs
- context
- node
-
TemplateInitException
public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException, MethodInvocationException, ResourceNotFoundException
render
in class Directive
context
- writer
- node
-
IOException
MethodInvocationException
ResourceNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |