public abstract class LetNode extends AbstractCommandNode implements SoyNode.StandaloneNode, SoyNode.StatementNode, SoyNode.LocalVarInlineNode
Important: Do not use outside of Soy code (treat as superpackage-private).
Modifier and Type | Class and Description |
---|---|
protected static class |
LetNode.CommandTextParseResult
Return value for
parseCommandTextHelper() . |
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.MsgSubstUnitNode, SoyNode.ParentSoyNode<N extends SoyNode>, SoyNode.RenderUnitNode, SoyNode.SplitLevelTopNode<N extends SoyNode>, SoyNode.StandaloneNode, SoyNode.StatementNode
Modifier and Type | Field and Description |
---|---|
static SoyError |
INVALID_COMMAND_TEXT |
protected LocalVar |
var
The local variable defined by this node.
|
SPACES
Modifier | Constructor and Description |
---|---|
protected |
LetNode(int id,
String localVarName,
String commandText) |
protected |
LetNode(LetNode orig)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
SoyNode.BlockNode |
getParent()
Gets this node's parent.
|
String |
getUniqueVarName()
Gets a unique version of the local var name (e.g.
|
LocalVar |
getVar()
Get the local variable defined by this node.
|
protected static LetNode.CommandTextParseResult |
parseCommandTextHelper(String commandText,
ErrorReporter errorReporter,
SourceLocation sourceLocation)
Helper used by subclass constructors to parse the command text.
|
buildTagStringHelper, buildTagStringHelper, getCommandName, getCommandText, getTagString, toSourceString
clone, getId, getSourceLocation, setId, setSourceLocation, toString
couldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVarName
clone, getId, getKind, getSourceLocation, setId, setSourceLocation
couldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toSourceString, toTreeString
public static final SoyError INVALID_COMMAND_TEXT
protected final LocalVar var
protected LetNode(int id, String localVarName, String commandText)
id
- The id for this node.commandText
- The command text.protected LetNode(LetNode orig)
orig
- The node to copy.protected static LetNode.CommandTextParseResult parseCommandTextHelper(String commandText, ErrorReporter errorReporter, SourceLocation sourceLocation)
commandText
- The command text.public String getUniqueVarName()
public SoyNode.BlockNode getParent()
Node
getParent
in interface Node
getParent
in interface SoyNode
getParent
in interface SoyNode.StandaloneNode
getParent
in class AbstractSoyNode
public final LocalVar getVar()