@HashCodeAndEqualsPlugin.Enhance protected static class MemberSubstitution.Replacement.ForDynamicInvocation.Factory extends Object implements MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.Factory.Compound
Modifier | Constructor and Description |
---|---|
protected |
Factory(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher,
ElementMatcher.Junction<? super String> nameMatcher,
ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher,
ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher,
MemberSubstitution.Substitution.Factory substitutionFactory)
Creates a factory for a replacement for a replacement for an invokedynamic instruction.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Replacement |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a replacement for an instrumented method.
|
protected Factory(ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<JavaConstant>> argumentsMatcher, MemberSubstitution.Substitution.Factory substitutionFactory)
handleMatcher
- A matcher for an invokedynamic bootstrap method.nameMatcher
- A matcher for an invokedynamic instruction's name.typeMatcher
- A matcher for an invokedynamic instruction's result type.argumentsMatcher
- A matcher for an invokedynamic instruction's constant arguments.substitutionFactory
- A factory for creating a substitution.public MemberSubstitution.Replacement make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make
in interface MemberSubstitution.Replacement.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used within the member substitution being applied.Copyright © 2014–2025. All rights reserved.