Package io.papermc.asm.rules.method
Record Class MethodRewrites.SuperTypeParam
java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.MethodRewrites.SuperTypeParam
- All Implemented Interfaces:
FilteredMethodRewriteRule,MethodRewriteRule,OwnableRewriteRule,RewriteRule
- Enclosing class:
- MethodRewrites
public static record MethodRewrites.SuperTypeParam(Set<Class<?>> owners, MethodMatcher methodMatcher, ClassDesc oldParamType, ClassDesc newParamType)
extends Record
implements FilteredMethodRewriteRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
MethodRewriteRule.Rewrite, MethodRewriteRule.RewriteSingleNested 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.method.MethodRewriteRule
LAMBDA_METAFACTORY_OWNERFields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionSuperTypeParam(Set<Class<?>> owners, MethodMatcher methodMatcher, ClassDesc oldParamType, ClassDesc newParamType) Creates an instance of aSuperTypeParamrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themethodMatcherrecord component.Returns the value of thenewParamTyperecord component.Returns the value of theoldParamTyperecord component.owners()Returns the value of theownersrecord component.rewrite(ClassProcessingContext context, boolean invokeDynamic, int opcode, String owner, String name, MethodTypeDesc descriptor, boolean isInterface) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.papermc.asm.rules.method.FilteredMethodRewriteRule
matchingMethodsByName, shouldProcessMethods inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
createVisitorMethods inherited from interface io.papermc.asm.rules.OwnableRewriteRule
matchesOwnerMethods inherited from interface io.papermc.asm.rules.RewriteRule
generateMethods
-
Constructor Details
-
SuperTypeParam
public SuperTypeParam(Set<Class<?>> owners, MethodMatcher methodMatcher, ClassDesc oldParamType, ClassDesc newParamType) Creates an instance of aSuperTypeParamrecord class.- Parameters:
owners- the value for theownersrecord componentmethodMatcher- the value for themethodMatcherrecord componentoldParamType- the value for theoldParamTyperecord componentnewParamType- the value for thenewParamTyperecord component
-
-
Method Details
-
rewrite
public MethodRewriteRule.Rewrite rewrite(ClassProcessingContext context, boolean invokeDynamic, int opcode, String owner, String name, MethodTypeDesc descriptor, boolean isInterface) - Specified by:
rewritein interfaceMethodRewriteRule
-
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). -
owners
Returns the value of theownersrecord component.- Specified by:
ownersin interfaceOwnableRewriteRule- Returns:
- the value of the
ownersrecord component
-
methodMatcher
Returns the value of themethodMatcherrecord component.- Specified by:
methodMatcherin interfaceFilteredMethodRewriteRule- Returns:
- the value of the
methodMatcherrecord component
-
oldParamType
Returns the value of theoldParamTyperecord component.- Returns:
- the value of the
oldParamTyperecord component
-
newParamType
Returns the value of thenewParamTyperecord component.- Returns:
- the value of the
newParamTyperecord component
-