|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.template.soy.basetree.AbstractNode
com.google.template.soy.exprtree.AbstractExprNode
com.google.template.soy.exprtree.AbstractParentExprNode
com.google.template.soy.exprtree.DataRefNode
public class DataRefNode
Node representing a data reference.
Important: Do not use outside of Soy code (treat as superpackage-private).
The first key is stored as a field in the node. The remaining accesses, if any, are children of the node. Each child must be a DataRefAccessNode (of which there are 3 subtypes).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.google.template.soy.exprtree.ExprNode |
|---|
ExprNode.ConstantNode, ExprNode.Kind, ExprNode.OperatorNode, ExprNode.ParentExprNode, ExprNode.PrimitiveNode |
| Field Summary |
|---|
| Fields inherited from class com.google.template.soy.basetree.AbstractNode |
|---|
SPACES |
| Constructor Summary | |
|---|---|
|
DataRefNode(boolean isIjDataRef,
boolean isNullSafeIjDataRef,
String firstKey)
|
protected |
DataRefNode(DataRefNode orig)
Copy constructor. |
| Method Summary | |
|---|---|
DataRefNode |
clone()
Clones this node. |
String |
getFirstKey()
Returns the first key. |
ExprNode.Kind |
getKind()
Gets this node's kind (corresponding to this node's specific type). |
boolean |
isIjDataRef()
Returns whether this node is a reference to injected data. |
Boolean |
isLocalVarDataRef()
Returns whether this node is a reference to local var data, or null if unknown. |
boolean |
isNullSafeIjDataRef()
Returns whether this node is a null-safe reference to injected data. |
void |
setIsLocalVarDataRef(Boolean isLocalVarDataRef)
Sets whether this node is a reference to local var data, or null if unknown. |
String |
toSourceString()
Builds a Soy source string that could be the source for this node. |
| Methods inherited from class com.google.template.soy.exprtree.AbstractParentExprNode |
|---|
addChild, addChild, addChildren, addChildren, appendSourceStringForChildren, appendTreeStringForChildren, clearChildren, getChild, getChildIndex, getChildren, numChildren, removeChild, removeChild, replaceChild, replaceChild, toTreeString |
| Methods inherited from class com.google.template.soy.exprtree.AbstractExprNode |
|---|
getParent |
| Methods inherited from class com.google.template.soy.basetree.AbstractNode |
|---|
getNearestAncestor, hasAncestor, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.template.soy.exprtree.ExprNode |
|---|
getParent |
| Methods inherited from interface com.google.template.soy.basetree.Node |
|---|
getNearestAncestor, hasAncestor, setParent |
| Constructor Detail |
|---|
public DataRefNode(boolean isIjDataRef,
boolean isNullSafeIjDataRef,
String firstKey)
isIjDataRef - Whether this node is a reference to injected data.isNullSafeIjDataRef - Whether this node is a null-safe reference to injected data.firstKey - The first key.protected DataRefNode(DataRefNode orig)
orig - The node to copy.| Method Detail |
|---|
public ExprNode.Kind getKind()
ExprNode
public boolean isIjDataRef()
public boolean isNullSafeIjDataRef()
public void setIsLocalVarDataRef(Boolean isLocalVarDataRef)
public Boolean isLocalVarDataRef()
public String getFirstKey()
public String toSourceString()
Node
public DataRefNode clone()
Node
clone in interface Nodeclone in interface ExprNodeclone in class AbstractExprNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||