MCPcopy Create free account
hub / github.com/LFYSec/MScan / MemberRef

Class MemberRef

src/main/java/pascal/taie/ir/proginfo/MemberRef.java:34–76  ·  view source on GitHub ↗

Represents references to class members in IR.

Source from the content-addressed store, hash-verified

32 * Represents references to class members in IR.
33 */
34public abstract class MemberRef implements Serializable {
35
36 private final JClass declaringClass;
37
38 private final String name;
39
40 private final boolean isStatic;
41
42 public MemberRef(JClass declaringClass, String name, boolean isStatic) {
43 this.declaringClass = declaringClass;
44 this.name = name;
45 this.isStatic = isStatic;
46 }
47
48 /**
49 * @return the declaring class of the reference.
50 */
51 public JClass getDeclaringClass() {
52 return declaringClass;
53 }
54
55 public String getName() {
56 return name;
57 }
58
59 public boolean isStatic() {
60 return isStatic;
61 }
62
63 /**
64 * @return the concrete class member pointed by this reference.
65 * @throws ResolutionFailedException if the class member
66 * cannot be resolved.
67 */
68 public abstract ClassMember resolve();
69
70 /**
71 * @return the concrete class member pointed by this reference,
72 * or null if the member cannot be resolved.
73 */
74 @Nullable
75 public abstract ClassMember resolveNullable();
76}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected