Package io.papermc.asm.rules.method
Record Class StaticRewrite.Plain
java.lang.Object
java.lang.Record
io.papermc.asm.rules.method.StaticRewrite.Plain
- All Implemented Interfaces:
FilteredMethodRewriteRule,MethodRewriteRule,StaticRewrite,OwnableRewriteRule,RewriteRule
- Enclosing interface:
- StaticRewrite
public static record StaticRewrite.Plain(Set<Class<?>> owners, MethodMatcher methodMatcher, ClassDesc staticRedirectOwner)
extends Record
implements StaticRewrite
-
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.MethodGeneratorFactoryNested classes/interfaces inherited from interface io.papermc.asm.rules.method.StaticRewrite
StaticRewrite.Generated, StaticRewrite.Plain, StaticRewrite.RewriteConstructor -
Field Summary
Fields inherited from interface io.papermc.asm.rules.method.MethodRewriteRule
LAMBDA_METAFACTORY_OWNERFields inherited from interface io.papermc.asm.rules.RewriteRule
EMPTYFields inherited from interface io.papermc.asm.rules.method.StaticRewrite
CONSTRUCTOR_METHOD_NAME -
Constructor Summary
ConstructorsConstructorDescriptionPlain(Set<Class<?>> owners, MethodMatcher methodMatcher, ClassDesc staticRedirectOwner) Creates an instance of aPlainrecord 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.owners()Returns the value of theownersrecord component.Returns the value of thestaticRedirectOwnerrecord component.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
generateMethodsMethods inherited from interface io.papermc.asm.rules.method.StaticRewrite
modifyMethodDescriptor, rewrite
-
Constructor Details
-
Plain
Creates an instance of aPlainrecord class.- Parameters:
owners- the value for theownersrecord componentmethodMatcher- the value for themethodMatcherrecord componentstaticRedirectOwner- the value for thestaticRedirectOwnerrecord component
-
-
Method Details
-
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
-
staticRedirectOwner
Returns the value of thestaticRedirectOwnerrecord component.- Specified by:
staticRedirectOwnerin interfaceStaticRewrite- Returns:
- the value of the
staticRedirectOwnerrecord component
-