blob: 25a63617adb78c5b4819ea85741397884a2f8e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package org.checkerframework.dataflow.cfg.node;
import com.sun.source.tree.Tree;
import javax.lang.model.type.TypeMirror;
/**
* A node to model the implicit {@code this}, e.g., in a field access.
*
* @author Stefan Heule
*/
public class ImplicitThisLiteralNode extends ThisLiteralNode {
public ImplicitThisLiteralNode(TypeMirror type) {
super(type);
}
@Override
public Tree getTree() {
return null;
}
@Override
public <R, P> R accept(NodeVisitor<R, P> visitor, P p) {
return visitor.visitImplicitThisLiteral(this, p);
}
@Override
public String toString() {
return "(" + getName() + ")";
}
}
|