public class ASTBlock extends SimpleNode
Modifier and Type | Field and Description |
---|---|
boolean |
endsWithNewline |
Constructor and Description |
---|
ASTBlock(int id) |
ASTBlock(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
String |
getPostfix()
get indentation postfix
|
String |
getPrefix()
get indentation prefix
|
Object |
init(InternalContextAdapter context,
Object data) |
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
boolean |
render(InternalContextAdapter context,
Writer writer) |
void |
setMorePostfix(String morePosffix) |
void |
setPostfix(String postfix)
set indentation postfix
|
void |
setPrefix(String prefix)
set indentation prefix
|
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, literal, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
public ASTBlock(int id)
id
- public ASTBlock(Parser p, int id)
p
- id
- public Object jjtAccept(ParserVisitor visitor, Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
SimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)
public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
init
in interface Node
init
in class SimpleNode
TemplateInitException
Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
public void setPrefix(String prefix)
prefix
- public String getPrefix()
public void setMorePostfix(String morePosffix)
public void setPostfix(String postfix)
postfix
- public String getPostfix()
public boolean render(InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException, ResourceNotFoundException, ParseErrorException
render
in interface Node
render
in interface Renderable
render
in class SimpleNode
IOException
MethodInvocationException
ResourceNotFoundException
ParseErrorException
SimpleNode.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.