Record Class InheritanceData
java.lang.Object
java.lang.Record
net.minecraftforge.forgedev.legacy.tasks.InheritanceData
- All Implemented Interfaces:
InheritanceDataAnnotatable
public record InheritanceData(String name, int access, String superName, List<String> interfaces, Map<String, InheritanceData.Method> methods, Map<String, InheritanceData.Field> fields, List<InheritanceData.Annotation> annotations)
extends Record
implements InheritanceDataAnnotatable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionInheritanceData(String name, int access, String superName, List<String> interfaces, Map<String, InheritanceData.Method> methods, Map<String, InheritanceData.Field> fields, List<InheritanceData.Annotation> annotations) Creates an instance of aInheritanceDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaccess()Returns the value of theaccessrecord component.Returns the value of theannotationsrecord component.final booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinterfacesrecord component.methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.static Map<String, InheritanceData> Returns the value of thesuperNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InheritanceData
public InheritanceData(String name, int access, String superName, List<String> interfaces, Map<String, InheritanceData.Method> methods, Map<String, InheritanceData.Field> fields, List<InheritanceData.Annotation> annotations) Creates an instance of aInheritanceDatarecord class.- Parameters:
name- the value for thenamerecord componentaccess- the value for theaccessrecord componentsuperName- the value for thesuperNamerecord componentinterfaces- the value for theinterfacesrecord componentmethods- the value for themethodsrecord componentfields- the value for thefieldsrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
parse
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
access
public int access()Returns the value of theaccessrecord component.- Returns:
- the value of the
accessrecord component
-
superName
Returns the value of thesuperNamerecord component.- Returns:
- the value of the
superNamerecord component
-
interfaces
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
annotations
Returns the value of theannotationsrecord component.- Specified by:
annotationsin interfaceInheritanceDataAnnotatable- Returns:
- the value of the
annotationsrecord component
-