Record Class ClassEntry
java.lang.Object
java.lang.Record
net.fabricmc.loom.decompilers.cache.ClassEntry
- Record Components:
name- The class nameinnerClasses- A list of inner class namessuperClasses- A list of parent classes (super and interface) from the class and all inner classes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopy the class and its inner classes to the target root.final booleanIndicates whether some other object is "equal to" this one.Hash the class and its inner classes using sha256.final inthashCode()Returns a hash code value for this object.hashSuperHierarchy(Map<String, String> hashes) Return a hash of the class and its super classes.Returns the value of theinnerClassesrecord component.name()Returns the value of thenamerecord component.Returns the value of thesuperClassesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClassEntry
Creates an instance of aClassEntryrecord class.- Parameters:
name- the value for thenamerecord componentinnerClasses- the value for theinnerClassesrecord componentsuperClasses- the value for thesuperClassesrecord component
-
-
Method Details
-
copyTo
Copy the class and its inner classes to the target root.- Parameters:
sourceRoot- The root of the source jartargetRoot- The root of the target jar- Throws:
IOException- If an error occurs while copying the files
-
hash
Hash the class and its inner classes using sha256.- Parameters:
root- The root of the jar- Returns:
- The hash of the class and its inner classes
- Throws:
IOException- If an error occurs while hashing the files
-
hashSuperHierarchy
Return a hash of the class and its super classes.- Throws:
IOException
-
sourcesFileName
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
innerClasses
Returns the value of theinnerClassesrecord component.- Returns:
- the value of the
innerClassesrecord component
-
superClasses
Returns the value of thesuperClassesrecord component.- Returns:
- the value of the
superClassesrecord component
-