Class MemberRef
java.lang.Object
EDU.purdue.cs.bloat.editor.MemberRef
MemberRef represents a method or field (as a NameAndType) and the
class (as a Type) in which it is declared.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the type of the class which declared the member.booleanCheck if an object is equal to this reference.inthashCode()Hash the member reference.name()Get the name of the member.Get the name and type of the member.toString()Convert the reference to a string.type()Get the type of the member.
-
Constructor Details
-
MemberRef
Constructor.- Parameters:
declaringClass- The type of the class which declared the member.nameAndType- The name and type of the member.
-
-
Method Details
-
declaringClass
Get the type of the class which declared the member.- Returns:
- The type of the class which declared the member.
-
name
-
type
-
nameAndType
Get the name and type of the member.- Returns:
- The name and type of the member.
-
toString
-
equals
-
hashCode
-