org.apache.velocity.runtime.parser.node
Class ASTDirective
- Node
public class ASTDirective
This class is responsible for handling the pluggable
directives in VTL. ex. #foreach()
Please look at the Parser.jjt file which is
what controls the generation of this class.
Version:
- Jason van Zyl
- Geir Magnusson Jr.
- Kasper Nielsen
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
directiveName
private String directiveName
isDirective
private boolean isDirective
ASTDirective
public ASTDirective(int id)
ASTDirective
public ASTDirective(Parser p,
int id)
getDirectiveName
public String getDirectiveName()
Gets the name of this directive.
setDirectiveName
public void setDirectiveName(String str)
Sets the directive name. Used by the parser. This keeps us from having to
dig it out of the token stream and gives the parse the change to override.
Copyright © 2003 Apache Software Foundation. All Rights Reserved.