Uses of Class
org.apache.velocity.runtime.directive.Directive
-
-
Uses of Directive in org.apache.velocity.runtime
Methods in org.apache.velocity.runtime that return Directive Modifier and Type Method Description DirectiveRuntimeInstance. getDirective(String name)Retrieve a previously instantiated directive.DirectiveRuntimeServices. getDirective(String name)Retrieve a previously instantiated directive.DirectiveRuntimeInstance. getVelocimacro(String vmName, Template renderingTemplate, Template template)Returns the appropriate VelocimacroProxy object if vmName is a valid current Velocimacro.DirectiveRuntimeServices. getVelocimacro(String vmName, Template renderingTemplate, Template template)Returns the appropriate VelocimacroProxy object if strVMname is a valid current Velocimacro.static DirectiveRuntimeSingleton. getVelocimacro(String vmName, Template renderingTemplate, Template template)Returns the appropriate VelocimacroProxy object if strVMname is a valid current Velocimacro.DirectiveVelocimacroFactory. getVelocimacro(String vmName, Template renderingTemplate, Template sourceTemplate)actual factory: creates a Directive that will behave correctly wrt getting the framework to dig out the correct # of argsMethods in org.apache.velocity.runtime with parameters of type Directive Modifier and Type Method Description voidRuntimeInstance. addDirective(Directive directive)Programatically add a directive. -
Uses of Directive in org.apache.velocity.runtime.directive
Subclasses of Directive in org.apache.velocity.runtime.directive Modifier and Type Class Description classBlockDirective that puts an unrendered AST block in the context under the specified key, postponing rendering until the reference is used and rendered.classBlockMacroBlockMacro directive is used to invoke Velocity macros with normal parameters and a macro body.classBreakBreak directive used for interrupting scopes.classDefineDirective that puts an unrendered AST block in the context under the specified key, postponing rendering until the reference is used and rendered.classEvaluateEvaluates the directive argument as a VTL string, using the existing context.classForeachForeach directive used for moving through arrays, or objects that provide an Iterator.classIncludePluggable directive that handles the #include() statement in VTL.classInputBaseBase class for directives which do input operations (e.g.classMacroMacro implements the macro definition directive of VTL.classParsePluggable directive that handles the#parse()statement in VTL.classRuntimeMacroThis class acts as a proxy for potential macros.classStopThis class implements the #stop directive which allows a user to stop the merging and rendering process.classVelocimacroProxyVelocimacroProxy.java a proxy Directive-derived object to fit with the current directive system -
Uses of Directive in org.apache.velocity.runtime.directive.contrib
Subclasses of Directive in org.apache.velocity.runtime.directive.contrib Modifier and Type Class Description classForThe #for directive provides the behavior of the #foreach directive but also provides an 'index' keyword that allows the user to define an optional index variable that tracks the loop iterations. -
Uses of Directive in org.apache.velocity.runtime.parser
Methods in org.apache.velocity.runtime.parser that return Directive Modifier and Type Method Description DirectiveParser. getDirective(String directive)DirectiveStandardParser. getDirective(String directive)This method gets a Directive from the directives Hashtable -
Uses of Directive in org.apache.velocity.util
Methods in org.apache.velocity.util with parameters of type Directive Modifier and Type Method Description static StringStringUtils. formatFileString(Directive directive)Creates a string that formats the template filename with line number and column of the given Directive.
-