Class MethodAccess.Matcher

java.lang.Object
org.openrewrite.trait.SimpleTraitMatcher<MethodAccess>
org.openrewrite.java.trait.MethodAccess.Matcher
All Implemented Interfaces:
org.openrewrite.trait.TraitMatcher<MethodAccess>
Enclosing class:
MethodAccess

public static class MethodAccess.Matcher extends org.openrewrite.trait.SimpleTraitMatcher<MethodAccess>
  • Constructor Details

    • Matcher

      public Matcher()
    • Matcher

      public Matcher(String methodPattern)
  • Method Details

    • returns

      public MethodAccess.Matcher returns(Predicate<@Nullable JavaType> returnsTest)
    • asVisitor

      public <P> org.openrewrite.TreeVisitor<? extends org.openrewrite.Tree,P> asVisitor(org.openrewrite.trait.VisitFunction2<MethodAccess,P> visitor)
      Specified by:
      asVisitor in interface org.openrewrite.trait.TraitMatcher<MethodAccess>
      Overrides:
      asVisitor in class org.openrewrite.trait.SimpleTraitMatcher<MethodAccess>
    • test

      protected @Nullable MethodAccess test(org.openrewrite.Cursor cursor)
      Specified by:
      test in class org.openrewrite.trait.SimpleTraitMatcher<MethodAccess>