public abstract class AbstractExprNode extends AbstractNode implements ExprNode
Important: Do not use outside of Soy code (treat as superpackage-private).
ExprNode.ConstantNode, ExprNode.Kind, ExprNode.OperatorNode, ExprNode.ParentExprNode, ExprNode.PrimitiveNodeSPACES| Modifier | Constructor and Description |
|---|---|
protected |
AbstractExprNode(AbstractExprNode orig,
CopyState copyState)
Copy constructor.
|
protected |
AbstractExprNode(SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
ExprNode.ParentExprNode |
getParent()
Gets this node's parent.
|
SourceLocation |
getSourceLocation()
TODO(user): The quality of source locations in expression nodes is not great.
|
couldHaveSyntaxVersionAtLeast, equals, getNearestAncestor, getSyntaxVersionUpperBound, hasAncestor, hashCode, maybeSetSyntaxVersionUpperBound, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionUpperBound, hasAncestor, maybeSetSyntaxVersionUpperBound, setParent, toSourceStringprotected AbstractExprNode(SourceLocation sourceLocation)
protected AbstractExprNode(AbstractExprNode orig, CopyState copyState)
orig - The node to copy.public ExprNode.ParentExprNode getParent()
Nodepublic SourceLocation getSourceLocation()
CallParamNode.Builder#parseCommandTextHelper), which implies that the
parentSourceLocation passed along with the munged text is inaccurate.
Until this is fixed, source locations obtained from expression nodes should be treated as best-effort only.
getSourceLocation in interface Node