public class InstanceOfNode extends Node
x instanceof Point
Modifier and Type | Field and Description |
---|---|
protected Node |
operand
The value being tested.
|
protected TypeMirror |
refType
The reference type being tested against.
|
protected InstanceOfTree |
tree
The tree associated with this node.
|
protected Types |
types
For Types.isSameType.
|
Constructor and Description |
---|
InstanceOfNode(Tree tree,
Node operand,
TypeMirror refType,
Types types)
Create an InstanceOfNode.
|
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) |
Node |
getOperand() |
Collection<Node> |
getOperands()
|
TypeMirror |
getRefType()
The reference type being tested against.
|
InstanceOfTree |
getTree()
Returns the
Tree in the abstract syntax tree, or null if no corresponding
tree exists. |
int |
hashCode() |
String |
toString() |
getAssignmentContext, getBlock, getInSource, getTransitiveOperands, getType, isLValue, nodeCollectionToString, setAssignmentContext, setBlock, setInSource, setLValue, toStringDebug
protected final Node operand
protected final TypeMirror refType
protected final InstanceOfTree tree
protected final Types types
public InstanceOfNode(Tree tree, Node operand, TypeMirror refType, Types types)
public Node getOperand()
public TypeMirror getRefType()
public InstanceOfTree getTree()
Node
Tree
in the abstract syntax tree, or null
if no corresponding
tree exists. For instance, this is the case for an ImplicitThisLiteralNode
.public <R,P> R accept(NodeVisitor<R,P> visitor, P p)
Node
public Collection<Node> getOperands()
Node
getOperands
in class Node
Node
s of this Node