public abstract class Directive
extends org.apache.velocity.runtime.directive.Directive
| Modifier and Type | Class and Description |
|---|---|
static class |
Directive.Variable |
| Modifier and Type | Field and Description |
|---|---|
static String |
DIRECTIVE_FILE_EXTENSION |
| Constructor and Description |
|---|
Directive() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
doRender(TemplateEngine engine,
List<Directive.Variable> variables) |
String |
getName() |
void |
init(org.apache.velocity.runtime.RuntimeServices rs,
org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node) |
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node) |
public static final String DIRECTIVE_FILE_EXTENSION
public String getName()
getName in class org.apache.velocity.runtime.directive.Directivepublic void init(org.apache.velocity.runtime.RuntimeServices rs,
org.apache.velocity.context.InternalContextAdapter context,
org.apache.velocity.runtime.parser.node.Node node)
throws org.apache.velocity.exception.TemplateInitException
init in class org.apache.velocity.runtime.directive.Directiveorg.apache.velocity.exception.TemplateInitExceptionpublic final boolean render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node)
throws org.apache.velocity.exception.ResourceNotFoundException
render in class org.apache.velocity.runtime.directive.Directiveorg.apache.velocity.exception.ResourceNotFoundExceptionprotected abstract String doRender(TemplateEngine engine, List<Directive.Variable> variables)
Copyright © 2020. All rights reserved.