Package io.papermc.asm.rules
Record Class RewriteRule.Chain
java.lang.Object
java.lang.Record
io.papermc.asm.rules.RewriteRule.Chain
- All Implemented Interfaces:
RewriteRule
- Enclosing interface:
- RewriteRule
public static record RewriteRule.Chain(List<RewriteRule> rules)
extends Record
implements RewriteRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.asm.rules.RewriteRule
RewriteRule.Chain, RewriteRule.ChainBuilder, RewriteRule.MethodGeneratorFactory -
Field Summary
Fields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVisitor(int api, ClassVisitor parent, ClassProcessingContext context) final booleanIndicates whether some other object is "equal to" this one.voidgenerateMethods(RewriteRule.MethodGeneratorFactory methodGeneratorFactory) final inthashCode()Returns a hash code value for this object.rules()Returns the value of therulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Chain
Creates an instance of aChainrecord class.- Parameters:
rules- the value for therulesrecord component
-
-
Method Details
-
createVisitor
- Specified by:
createVisitorin interfaceRewriteRule
-
generateMethods
- Specified by:
generateMethodsin interfaceRewriteRule
-
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). -
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-