public class ASTSetDirective extends SimpleNode
Modifier and Type | Field and Description |
---|---|
private boolean |
isInitialized |
private ASTReference |
left |
private java.lang.String |
leftReference |
private java.lang.String |
morePrefix |
private java.lang.String |
postfix |
private java.lang.String |
prefix |
private Node |
right |
protected boolean |
strictRef
Indicates if we are running in strict reference mode.
|
protected Info |
uberInfo
This is really immutable after the init, so keep one for this node
|
Constructor and Description |
---|
ASTSetDirective(int id) |
ASTSetDirective(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
private ASTReference |
getLeftHandSide()
returns the ASTReference that is the LHS of the set statement
|
java.lang.String |
getPostfix()
get indentation postfix
|
java.lang.String |
getPrefix()
get indentation prefix
|
private Node |
getRightHandSide()
returns the RHS Node of the set statement
|
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data)
simple init.
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data) |
java.lang.String |
literal()
Returns the string "#set($reference = ...)".
|
boolean |
render(InternalContextAdapter context,
java.io.Writer writer)
puts the value of the RHS into the context under the key of the LHS
|
void |
setPostfix(java.lang.String postfix)
set indentation postfix
|
void |
setPrefix(java.lang.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, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
private java.lang.String leftReference
private Node right
private ASTReference left
private boolean isInitialized
private java.lang.String prefix
private java.lang.String postfix
private java.lang.String morePrefix
protected Info uberInfo
protected boolean strictRef
public ASTSetDirective(int id)
id
- public ASTSetDirective(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
context
- data
- TemplateInitException
Node.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 boolean render(InternalContextAdapter context, java.io.Writer writer) throws java.io.IOException, MethodInvocationException
render
in interface Node
render
in interface Renderable
render
in class SimpleNode
context
- writer
- java.io.IOException
MethodInvocationException
Node.render(org.apache.velocity.context.InternalContextAdapter, java.io.Writer)
public java.lang.String literal()
literal
in interface Node
literal
in class SimpleNode
Node.literal()
private ASTReference getLeftHandSide()
private Node getRightHandSide()