| Modifier and Type | Method and Description | 
|---|---|
| Directive | RuntimeServices. getDirective(String name)Retrieve a previously instantiated directive. | 
| Directive | RuntimeInstance. getDirective(String name)Retrieve a previously instantiated directive. | 
| Directive | VelocimacroFactory. 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 args | 
| static Directive | RuntimeSingleton. getVelocimacro(String vmName,
              Template renderingTemplate,
              Template template)Returns the appropriate VelocimacroProxy object if strVMname
 is a valid current Velocimacro. | 
| Directive | RuntimeServices. getVelocimacro(String vmName,
              Template renderingTemplate,
              Template template)Returns the appropriate VelocimacroProxy object if strVMname
 is a valid current Velocimacro. | 
| Directive | RuntimeInstance. getVelocimacro(String vmName,
              Template renderingTemplate,
              Template template)Returns the appropriate VelocimacroProxy object if vmName
 is a valid current Velocimacro. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RuntimeInstance. addDirective(Directive directive)Programatically add a directive. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BlockDirective that puts an unrendered AST block in the context
 under the specified key, postponing rendering until the
 reference is used and rendered. | 
| class  | BlockMacroBlockMacro directive is used to invoke Velocity macros with normal parameters and a macro body. | 
| class  | BreakBreak directive used for interrupting scopes. | 
| class  | DefineDirective that puts an unrendered AST block in the context
 under the specified key, postponing rendering until the
 reference is used and rendered. | 
| class  | EvaluateEvaluates the directive argument as a VTL string, using the existing
 context. | 
| class  | ForeachForeach directive used for moving through arrays,
 or objects that provide an Iterator. | 
| class  | IncludePluggable directive that handles the #include() statement in VTL. | 
| class  | InputBaseBase class for directives which do input operations
 (e.g. | 
| class  | MacroMacro implements the macro definition directive of VTL. | 
| class  | ParsePluggable directive that handles the  #parse()statement in VTL. | 
| class  | RuntimeMacroThis class acts as a proxy for potential macros. | 
| class  | StopThis class implements the #stop directive which allows
 a user to stop the merging and rendering process. | 
| class  | VelocimacroProxyVelocimacroProxy.java
   a proxy Directive-derived object to fit with the current directive system | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ForThe #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. | 
| Modifier and Type | Method and Description | 
|---|---|
| Directive | StandardParser. getDirective(String directive)This method gets a Directive from the directives Hashtable | 
| Directive | Parser. getDirective(String directive) | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | StringUtils. formatFileString(Directive directive)Creates a string that formats the template filename with line number
 and column of the given Directive. | 
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.