Package org.openrewrite.analysis
Interface InvocationMatcher
- All Known Subinterfaces:
BasicJavaTypeMethodMatcher,GenericExternalModel,JavaTypeMethodMatcher
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Matcher for finding
J.NewClass and J.MethodInvocation Expressions.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionadvanced()static InvocationMatcherfrom(Collection<? extends InvocationMatcher> matchers) static InvocationMatcherfromMethodMatcher(org.openrewrite.java.MethodMatcher matcher) static InvocationMatcherfromMethodMatchers(Collection<? extends org.openrewrite.java.MethodMatcher> matchers) static InvocationMatcherfromMethodMatchers(org.openrewrite.java.MethodMatcher... matchers) booleanmatches(@Nullable org.openrewrite.java.tree.Expression expression)
-
Method Details
-
matches
boolean matches(@Nullable @Nullable org.openrewrite.java.tree.Expression expression) -
advanced
-
from
-
fromMethodMatchers
static InvocationMatcher fromMethodMatchers(Collection<? extends org.openrewrite.java.MethodMatcher> matchers) -
fromMethodMatchers
-
fromMethodMatcher
-