| Constructor and Description |
|---|
BlockStatement(int lineNumber,
Block block)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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 |
getBlock()
Return the block to be executed
|
boolean |
isSynthetic()
Tells if this is a synthetic block statement or not.
|
boolean |
isTerminal()
Is this a terminal statement, i.e.
|
BlockStatement |
setBlock(Block block)
Reset the block to be executed
|
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 BlockStatement(int lineNumber,
Block block)
lineNumber - line numberblock - the block to executepublic boolean isTerminal()
StatementisTerminal in interface TerminalisTerminal in class Statementpublic boolean isSynthetic()
public Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodepublic <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printType)
Nodepublic Block getBlock()
public BlockStatement setBlock(Block block)
block - the block