aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/checker_framework_dataflow/java/org/checkerframework/dataflow/cfg/node/ImplicitThisLiteralNode.java
blob: 56bfa83e7504799c6f38b3265243f788d42c98b3 (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
32
33
package org.checkerframework.dataflow.cfg.node;

import javax.lang.model.type.TypeMirror;

import com.sun.source.tree.Tree;

/**
 * A node to model the implicit <code>this</code>, 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() + ")";
    }
}