com.google.template.soy.soytree
Class CallParamValueNode

java.lang.Object
  extended by com.google.template.soy.basetree.AbstractNode
      extended by com.google.template.soy.soytree.AbstractSoyNode
          extended by com.google.template.soy.soytree.AbstractCommandNode
              extended by com.google.template.soy.soytree.CallParamNode
                  extended by com.google.template.soy.soytree.CallParamValueNode
All Implemented Interfaces:
Node, SoyNode, SoyNode.CommandNode, SoyNode.ExprHolderNode

public class CallParamValueNode
extends CallParamNode
implements SoyNode.ExprHolderNode

Node representing a 'param' with a value expression.

Important: Do not use outside of Soy code (treat as superpackage-private).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.template.soy.soytree.CallParamNode
CallParamNode.CommandTextParseResult
 
Nested classes/interfaces inherited from interface com.google.template.soy.soytree.SoyNode
SoyNode.BlockCommandNode, SoyNode.BlockNode, SoyNode.CommandNode, SoyNode.ConditionalBlockNode, SoyNode.ExprHolderNode, SoyNode.Kind, SoyNode.LocalVarBlockNode, SoyNode.LocalVarInlineNode, SoyNode.LocalVarNode, SoyNode.LoopNode, SoyNode.MsgBlockNode, SoyNode.MsgPlaceholderInitialNode, SoyNode.ParentSoyNode<N extends SoyNode>, SoyNode.RenderUnitNode, SoyNode.SplitLevelTopNode<N extends SoyNode>, SoyNode.StandaloneNode, SoyNode.StatementNode, SoyNode.SyntaxVersion
 
Field Summary
 
Fields inherited from class com.google.template.soy.basetree.AbstractNode
SPACES
 
Constructor Summary
protected CallParamValueNode(CallParamValueNode orig)
          Copy constructor.
  CallParamValueNode(int id, String commandText)
           
 
Method Summary
 CallParamValueNode clone()
          Clones this node.
 List<ExprUnion> getAllExprUnions()
          Returns the list of expressions in this node.
 String getKey()
          Returns the param key.
 SoyNode.Kind getKind()
          Returns this node's kind (corresponding to this node's specific type).
 String getTagString()
          Builds a Soy tag string that could be the Soy tag for this node.
 String getValueExprText()
          Returns the expression text for the param value.
 ExprUnion getValueExprUnion()
          Returns the parsed expression for the param value.
 
Methods inherited from class com.google.template.soy.soytree.CallParamNode
getParent, parseCommandTextHelper
 
Methods inherited from class com.google.template.soy.soytree.AbstractCommandNode
buildTagStringHelper, buildTagStringHelper, getCommandName, getCommandText, toSourceString
 
Methods inherited from class com.google.template.soy.soytree.AbstractSoyNode
getId, getSourceLocation, getSyntaxVersion, maybeSetSyntaxVersion, setId, setSourceLocation, toString
 
Methods inherited from class com.google.template.soy.basetree.AbstractNode
getNearestAncestor, hasAncestor, setParent, toTreeString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.template.soy.soytree.SoyNode
getId, getParent, getSourceLocation, getSyntaxVersion, setId, setSourceLocation
 
Methods inherited from interface com.google.template.soy.basetree.Node
getNearestAncestor, hasAncestor, setParent, toSourceString, toTreeString
 

Constructor Detail

CallParamValueNode

public CallParamValueNode(int id,
                          String commandText)
                   throws SoySyntaxException
Parameters:
id - The id for this node.
commandText - The command text.
Throws:
SoySyntaxException - If a syntax error is found.

CallParamValueNode

protected CallParamValueNode(CallParamValueNode orig)
Copy constructor.

Parameters:
orig - The node to copy.
Method Detail

getKind

public SoyNode.Kind getKind()
Description copied from interface: SoyNode
Returns this node's kind (corresponding to this node's specific type).

Specified by:
getKind in interface SoyNode

getKey

public String getKey()
Description copied from class: CallParamNode
Returns the param key.

Specified by:
getKey in class CallParamNode

getValueExprText

public String getValueExprText()
Returns the expression text for the param value.


getValueExprUnion

public ExprUnion getValueExprUnion()
Returns the parsed expression for the param value.


getTagString

public String getTagString()
Description copied from interface: SoyNode.CommandNode
Builds a Soy tag string that could be the Soy tag for this node. Note that this may not necessarily be the actual original Soy tag, but a (sort of) canonical equivalent.

Specified by:
getTagString in interface SoyNode.CommandNode
Overrides:
getTagString in class AbstractCommandNode
Returns:
A Soy tag string that could be the Soy tag for this node.

getAllExprUnions

public List<ExprUnion> getAllExprUnions()
Description copied from interface: SoyNode.ExprHolderNode
Returns the list of expressions in this node.

Specified by:
getAllExprUnions in interface SoyNode.ExprHolderNode

clone

public CallParamValueNode clone()
Description copied from interface: Node
Clones this node. The clone's parent pointer is set to null.

Specified by:
clone in interface Node
Specified by:
clone in interface SoyNode
Specified by:
clone in class AbstractSoyNode
Returns:
A clone of this code.