public class ExpressionStatementNode extends Node
expression;An
ExpressionStatementNode
appears in the CFG after the node(s) of the expression. The
node can be used for special-handling of expression statements or can be seen as a no-op marker
node.Modifier and Type | Field and Description |
---|---|
protected ExpressionTree |
tree
The expression constituting this ExpressionStatementNode.
|
Constructor and Description |
---|
ExpressionStatementNode(ExpressionTree t)
Construct a ExpressionStatementNode.
|
Modifier and Type | Method and Description |
---|---|
<R,P> R |
accept(NodeVisitor<R,P> visitor,
P p)
Accept method of the visitor pattern.
|
boolean |
equals(@Nullable Object obj) |
Collection<Node> |
getOperands()
|
@Nullable Tree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding
tree exists. |
int |
hashCode() |
String |
toString() |
getBlock, getInSource, getTransitiveOperands, getType, getUid, isLValue, nodeCollectionToString, setBlock, setInSource, setLValue, toStringDebug
protected final ExpressionTree tree
public ExpressionStatementNode(ExpressionTree t)
t
- the expression constituting this ExpressionStatementNodepublic @Nullable Tree getTree()
Node
Tree
in the abstract syntax tree, or null
if no corresponding
tree exists. For instance, this is the case for an ImplicitThisNode
.public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node
public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node