Class Directive
- java.lang.Object
-
- org.apache.velocity.runtime.directive.Directive
-
- compozitor.template.core.interfaces.Directive
-
- All Implemented Interfaces:
Cloneable,org.apache.velocity.runtime.directive.DirectiveConstants
- Direct Known Subclasses:
BlockDirective,LineDirective
public abstract class Directive extends org.apache.velocity.runtime.directive.Directive
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDirective.Variable
-
Field Summary
Fields Modifier and Type Field Description static StringDIRECTIVE_FILE_EXTENSION
-
Constructor Summary
Constructors Constructor Description Directive()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract StringdoRender(TemplateEngine engine, List<Directive.Variable> variables)StringgetName()voidinit(org.apache.velocity.runtime.RuntimeServices rs, org.apache.velocity.context.InternalContextAdapter context, org.apache.velocity.runtime.parser.node.Node node)booleanrender(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node)
-
-
-
Field Detail
-
DIRECTIVE_FILE_EXTENSION
public static final String DIRECTIVE_FILE_EXTENSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classorg.apache.velocity.runtime.directive.Directive
-
init
public 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- Overrides:
initin classorg.apache.velocity.runtime.directive.Directive- Throws:
org.apache.velocity.exception.TemplateInitException
-
render
public 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- Specified by:
renderin classorg.apache.velocity.runtime.directive.Directive- Throws:
org.apache.velocity.exception.ResourceNotFoundException
-
doRender
protected abstract String doRender(TemplateEngine engine, List<Directive.Variable> variables)
-
-