@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation extends MemberSubstitution.WithoutSpecification
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement, MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation, MemberSubstitution.WithoutSpecification.ForMatchedField, MemberSubstitution.WithoutSpecification.ForMatchedMethodfailIfNoMatch, methodGraphCompiler, replacementFactory, strict, typePoolResolver| Modifier | Constructor and Description | 
|---|---|
| protected  | ForMatchedDynamicInvocation(MethodGraph.Compiler methodGraphCompiler,
                           MemberSubstitution.TypePoolResolver typePoolResolver,
                           boolean strict,
                           boolean failIfNoMatch,
                           MemberSubstitution.Replacement.Factory replacementFactory,
                           ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher,
                           ElementMatcher.Junction<? super String> nameMatcher,
                           ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher,
                           ElementMatcher.Junction<? super List<? extends JavaConstant>> argumentsMatcher)Creates a member substitution for an invokedynamic instruction. | 
| Modifier and Type | Method and Description | 
|---|---|
| MemberSubstitution | replaceWith(MemberSubstitution.Substitution.Factory substitutionFactory)Replaces any interaction with the supplied substitution. | 
| MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation | withArguments(ElementMatcher<? super List<? extends JavaConstant>> argumentsMatcher)Reduces matched invokedynamic instructions to such instructions that is provided with constant arguments which are matched by the supplied matcher. | 
| MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation | withName(ElementMatcher<? super String> nameMatcher)Reduces matched invokedynamic instructions to such instructions that declare a name which is matched by the supplied matcher. | 
| MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation | withType(ElementMatcher<? super JavaConstant.MethodType> typeMatcher)Reduces matched invokedynamic instructions to such instructions that require a type which is matched by the supplied matcher. | 
replaceWith, replaceWith, replaceWith, replaceWith, replaceWithChain, replaceWithChain, replaceWithConstant, replaceWithField, replaceWithInstrumentedMethod, replaceWithMethod, replaceWithMethod, stubprotected ForMatchedDynamicInvocation(MethodGraph.Compiler methodGraphCompiler, MemberSubstitution.TypePoolResolver typePoolResolver, boolean strict, boolean failIfNoMatch, MemberSubstitution.Replacement.Factory replacementFactory, ElementMatcher<? super JavaConstant.MethodHandle> handleMatcher, ElementMatcher.Junction<? super String> nameMatcher, ElementMatcher.Junction<? super JavaConstant.MethodType> typeMatcher, ElementMatcher.Junction<? super List<? extends JavaConstant>> argumentsMatcher)
methodGraphCompiler - The method graph compiler to use.typePoolResolver - The type pool resolver to use.strict - true if the method processing should be strict where an exception is raised if a member cannot be found.failIfNoMatch - true if the instrumentation should fail if applied to a method without match.replacementFactory - The replacement factory to use for creating substitutions.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.public MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation withName(ElementMatcher<? super String> nameMatcher)
nameMatcher - A matcher for an invokedynamic instruction's name.public MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation withType(ElementMatcher<? super JavaConstant.MethodType> typeMatcher)
typeMatcher - A matcher for an invokedynamic instruction's required type.public MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation withArguments(ElementMatcher<? super List<? extends JavaConstant>> argumentsMatcher)
argumentsMatcher - A matcher for an invokedynamic instruction's constant arguments.public MemberSubstitution replaceWith(MemberSubstitution.Substitution.Factory substitutionFactory)
MemberSubstitution.WithoutSpecificationreplaceWith in class MemberSubstitution.WithoutSpecificationsubstitutionFactory - The substitution factory to use for creating the applied substitution.Copyright © 2014–2025. All rights reserved.