Class Annotated.Matcher

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

public static class Annotated.Matcher extends org.openrewrite.trait.SimpleTraitMatcher<Annotated>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Matcher(Class<?> annotationType)
     
    Matcher(String signature)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <P> org.openrewrite.TreeVisitor<? extends org.openrewrite.Tree,P>
    asVisitor(org.openrewrite.trait.VisitFunction2<Annotated,P> visitor)
     
    protected @Nullable Annotated
    test(org.openrewrite.Cursor cursor)
     

    Methods inherited from class org.openrewrite.trait.SimpleTraitMatcher

    get, higher, lower

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.openrewrite.trait.TraitMatcher

    asVisitor, get, lower, require, require
  • Constructor Details

    • Matcher

      public Matcher(String signature)
    • Matcher

      public Matcher(Class<?> annotationType)
  • Method Details

    • asVisitor

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

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