public class ASTDirective extends SimpleNode
Modifier and Type | Field and Description |
---|---|
private Directive |
directive |
private java.lang.String |
directiveName |
private boolean |
isDirective |
private boolean |
isInitialized |
private java.lang.String |
morePrefix |
private java.lang.String |
postfix |
private java.lang.String |
prefix |
Constructor and Description |
---|
ASTDirective(int id) |
ASTDirective(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDirectiveName()
Gets the name of this directive.
|
int |
getDirectiveType() |
java.lang.String |
getMorePrefix()
more prefix getter
|
java.lang.String |
getPostfix()
get indentation postfix
|
java.lang.String |
getPrefix()
get indentation prefix
|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data) |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
java.lang.String |
literal()
Returns the string "#directive_name(...)".
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer) |
void |
setDirectiveName(java.lang.String str)
Sets the directive name.
|
void |
setPostfix(java.lang.String postfix)
set indentation postfix
|
void |
setPrefix(java.lang.String prefix)
set indentation prefix
|
java.lang.String |
toString() |
childrenAccept, cleanupParserAndTokens, dump, dump, dump, evaluate, execute, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getParser, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, value
private Directive directive
private java.lang.String directiveName
private boolean isDirective
private boolean isInitialized
private java.lang.String prefix
private java.lang.String postfix
private java.lang.String morePrefix
public ASTDirective(int id)
id
- public ASTDirective(Parser p, int id)
p
- id
- public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
SimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)
public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init
in interface Node
init
in class SimpleNode
TemplateInitException
SimpleNode.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
public void setPrefix(java.lang.String prefix)
prefix
- public java.lang.String getPrefix()
public void setPostfix(java.lang.String postfix)
postfix
- public java.lang.String getPostfix()
public java.lang.String getMorePrefix()
public int getDirectiveType()
public boolean render(InternalContextAdapter context, java.io.Writer writer) throws java.io.IOException, MethodInvocationException, ResourceNotFoundException, ParseErrorException
render
in interface Node
render
in interface Renderable
render
in class SimpleNode
java.io.IOException
MethodInvocationException
ResourceNotFoundException
ParseErrorException
SimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)
public void setDirectiveName(java.lang.String str)
str
- public java.lang.String getDirectiveName()
public java.lang.String toString()
toString
in class SimpleNode
public java.lang.String literal()
literal
in interface Node
literal
in class SimpleNode
Node.literal()