Package net.fabricmc.loom.task
Record Class ValidateMixinNameTask.Mixin
java.lang.Object
java.lang.Record
net.fabricmc.loom.task.ValidateMixinNameTask.Mixin
- Enclosing class:
ValidateMixinNameTask
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccessor()Returns the value of theaccessorrecord component.Returns the value of theclassNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.objectweb.asm.Typetarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Mixin
Creates an instance of aMixinrecord class.- Parameters:
className- the value for theclassNamerecord componenttarget- the value for thetargetrecord componentaccessor- the value for theaccessorrecord component
-
-
Method Details
-
expectedClassName
-
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 '=='. -
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
target
public org.objectweb.asm.Type target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
accessor
public boolean accessor()Returns the value of theaccessorrecord component.- Returns:
- the value of the
accessorrecord component
-