| Constructor and Description |
|---|
ExpressionStatement(int lineNumber,
long token,
int finish,
Expression expression)
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.
|
Expression |
getExpression()
Return the expression to be executed
|
boolean |
isCompletionValueNeverEmpty() |
ExpressionStatement |
setExpression(Expression expression)
Reset the expression to be executed
|
void |
toString(StringBuilder sb,
boolean printTypes)
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, isTerminalclone, equals, getFinish, getSourceOrder, getStart, getToken, hashCode, isAssignment, isLoop, isTokenType, tokenType, toString, toStringpublic ExpressionStatement(int lineNumber,
long token,
int finish,
Expression expression)
lineNumber - line numbertoken - tokenfinish - finishexpression - the expression to executepublic Node accept(NodeVisitor<? extends LexicalContext> visitor)
Nodepublic <R> R accept(TranslatorNodeVisitor<? extends LexicalContext,R> visitor)
Nodepublic void toString(StringBuilder sb, boolean printTypes)
Nodepublic Expression getExpression()
public ExpressionStatement setExpression(Expression expression)
expression - the expressionpublic boolean isCompletionValueNeverEmpty()
isCompletionValueNeverEmpty in class Statementempty