Package codechicken.mixin.util
Record Class MixinInfo
java.lang.Object
java.lang.Record
codechicken.mixin.util.MixinInfo
public record MixinInfo(String name, String parent, List<MixinInfo> parentTraits, List<FieldMixin> fields, List<org.objectweb.asm.tree.MethodNode> methods, List<String> supers)
extends Record
Created by covers1624 on 2/11/20.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.net.covers1624.quack.collection.FastStream<MixinInfo>List<org.objectweb.asm.tree.MethodNode>methods()Returns the value of themethodsrecord component.name()Returns the value of thenamerecord component.parent()Returns the value of theparentrecord component.Returns the value of theparentTraitsrecord component.supers()Returns the value of thesupersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MixinInfo
public MixinInfo(String name, String parent, List<MixinInfo> parentTraits, List<FieldMixin> fields, List<org.objectweb.asm.tree.MethodNode> methods, List<String> supers) Creates an instance of aMixinInforecord class.- Parameters:
name- the value for thenamerecord componentparent- the value for theparentrecord componentparentTraits- the value for theparentTraitsrecord componentfields- the value for thefieldsrecord componentmethods- the value for themethodsrecord componentsupers- the value for thesupersrecord component
-
-
Method Details
-
linearize
-
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
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
parentTraits
Returns the value of theparentTraitsrecord component.- Returns:
- the value of the
parentTraitsrecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-
methods
Returns the value of themethodsrecord component.- Returns:
- the value of the
methodsrecord component
-
supers
Returns the value of thesupersrecord component.- Returns:
- the value of the
supersrecord component
-