S - The MemberSignature type used by this referencepublic abstract class MemberReference<S extends MemberSignature> extends QualifiedReference
class member.QualifiedReference.Type| Modifier and Type | Field and Description |
|---|---|
protected ClassReference |
owningClass |
protected S |
signature |
JVMS_COMPONENT_JOINER, type| Constructor and Description |
|---|
MemberReference(QualifiedReference.Type type,
ClassReference owningClass,
S signature)
Constructs a new reference to a class member.
|
| Modifier and Type | Method and Description |
|---|---|
protected StringJoiner |
buildToString() |
boolean |
equals(Object obj) |
ClassReference |
getOwningClass()
Gets the class which owns this member.
|
S |
getSignature()
Gets the signature of this member.
|
int |
hashCode() |
String |
toJvmsIdentifier()
Returns a JVMS-like identifier string corresponding to this reference.
|
getType, toStringprotected final ClassReference owningClass
protected final S extends MemberSignature signature
public MemberReference(QualifiedReference.Type type, ClassReference owningClass, S signature)
type - The type of reference (must be either Type#FIELD or
Type#METHOD.owningClass - A reference to the class which owns the membersignature - The signature of the memberpublic ClassReference getOwningClass()
public S getSignature()
public String toJvmsIdentifier()
QualifiedReferencetoJvmsIdentifier in class QualifiedReferenceprotected StringJoiner buildToString()
buildToString in class QualifiedReferencepublic boolean equals(Object obj)
equals in class QualifiedReferencepublic int hashCode()
hashCode in class QualifiedReference