public class ASTReference extends AbstractVmNode
Modifier and Type | Field and Description |
---|---|
boolean |
strictRef
Indicates if we are running in strict reference mode.
|
boolean |
toStringNullCheck
Indicates if toString() should be called during condition evaluation just to ensure it does not return null.
|
first, info, invalid, last, parser, state, templateName
beginColumn, beginLine, childIndex, children, endColumn, endLine, id, parent
Constructor and Description |
---|
ASTReference(int id) |
ASTReference(VmParser p,
int id) |
Modifier and Type | Method and Description |
---|---|
String |
getRootString()
Returns the 'root string', the reference key
|
Object |
jjtAccept(VmParserVisitor visitor,
Object data)
Accept the visitor.
|
String |
literal()
Override of the SimpleNode method literal() Returns the literal representation of the node.
|
void |
setLiteral(String literal)
Routine to allow the literal representation to be externally overridden.
|
childrenAccept, dump, getColumn, getFirstToken, getInfo, getLastToken, getLine, getTemplateName, getType, isInvalid, jjtClose, jjtOpen, setFirstToken, setInfo, setInvalid, toString, toString
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
public boolean strictRef
public boolean toStringNullCheck
public ASTReference(int id)
id
- public ASTReference(VmParser p, int id)
p
- id
- public Object jjtAccept(VmParserVisitor visitor, Object data)
VmNode
jjtAccept
in interface VmNode
jjtAccept
in class AbstractVmNode
org.apache.velocity.runtime.parser.node.SimpleNode#jjtAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor,
java.lang.Object)
public String getRootString()
public void setLiteral(String literal)
literal
- String to render to when nullpublic String literal()
literal
in class AbstractVmNode
org.apache.velocity.runtime.parser.node.Node#literal()
Copyright © 2002–2015 InfoEther. All rights reserved.