Module org.glavo.classfile
Package org.glavo.classfile
Record Class ClassHierarchyResolver.ClassHierarchyInfo
java.lang.Object
java.lang.Record
org.glavo.classfile.ClassHierarchyResolver.ClassHierarchyInfo
- Record Components:
thisClass- descriptor of this classisInterface- whether this class is an interfacesuperClass- descriptor of the superclass (not relevant for interfaces)
- Enclosing interface:
ClassHierarchyResolver
public static record ClassHierarchyResolver.ClassHierarchyInfo(ClassDesc thisClass, boolean isInterface, ClassDesc superClass)
extends Record
Information about a resolved class.
-
Constructor Summary
ConstructorsConstructorDescriptionClassHierarchyInfo(ClassDesc thisClass, boolean isInterface, ClassDesc superClass) Creates an instance of aClassHierarchyInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisInterfacerecord component.Returns the value of thesuperClassrecord component.Returns the value of thethisClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassHierarchyInfo
Creates an instance of aClassHierarchyInforecord class.- Parameters:
thisClass- the value for thethisClassrecord componentisInterface- the value for theisInterfacerecord componentsuperClass- the value for thesuperClassrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
thisClass
Returns the value of thethisClassrecord component.- Returns:
- the value of the
thisClassrecord component
-
isInterface
public boolean isInterface()Returns the value of theisInterfacerecord component.- Returns:
- the value of the
isInterfacerecord component
-
superClass
Returns the value of thesuperClassrecord component.- Returns:
- the value of the
superClassrecord component
-