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, toSourceStringclone, getId, getSourceLocation, setId, setSourceLocation, toStringcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toTreeStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVarNameclone, getId, getKind, getSourceLocation, setId, setSourceLocationcouldHaveSyntaxVersionAtLeast, getNearestAncestor, getSyntaxVersionBound, hasAncestor, maybeSetSyntaxVersionBound, setParent, toSourceString, toTreeStringpublic 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()
NodegetParent in interface NodegetParent in interface SoyNodegetParent in interface SoyNode.StandaloneNodegetParent in class AbstractSoyNodepublic final LocalVar getVar()