public final class LabelNode extends Statement
| Constructor and Description | 
|---|
LabelNode(int lineNumber,
         long token,
         int finish,
         String labelName,
         Block body)
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Node | 
accept(LexicalContext lc,
      NodeVisitor<? extends LexicalContext> visitor)
Accept function for the node given a lexical context. 
 | 
<R> R | 
accept(LexicalContext lc,
      TranslatorNodeVisitor<? extends LexicalContext,R> visitor)  | 
Node | 
accept(NodeVisitor<? extends LexicalContext> visitor)
Provides a means to navigate the IR. 
 | 
<R> R | 
accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Provides a means to navigate the IR. 
 | 
Block | 
getBody()
Get the body of the node 
 | 
String | 
getLabelName()
Get the label name 
 | 
boolean | 
isTerminal()
Is this a terminal statement, i.e. 
 | 
LabelNode | 
setBody(LexicalContext lc,
       Block body)
Reset the body of the node 
 | 
void | 
toString(StringBuilder sb,
        boolean printType)
Print logic that decides whether to show the optimistic type or not - for example it should
 not be printed after just parse, when it hasn't been computed, or has been set to a trivially
 provable value 
 | 
getLineNumber, hasGoto, hasTerminalFlags, isCompletionValueNeverEmptyclone, equals, getFinish, getSourceOrder, getStart, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toStringpublic boolean isTerminal()
StatementisTerminal in interface TerminalisTerminal in class Statementpublic Node accept(LexicalContext lc, NodeVisitor<? extends LexicalContext> visitor)
LexicalContextNodelc - lexical contextvisitor - node visitorpublic <R> R accept(LexicalContext lc, TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
public void toString(StringBuilder sb, boolean printType)
Nodepublic Block getBody()
public LabelNode setBody(LexicalContext lc, Block body)
lc - lexical contextbody - new bodypublic String getLabelName()
public final Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodeaccept in interface LexicalContextNodeaccept in class Nodevisitor - Node visitor.public final <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodeaccept in interface LexicalContextNodeaccept in class Nodevisitor - Node visitor.