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
    protected @Nullable Annotated
    test(org.openrewrite.Cursor cursor)
     

    Methods inherited from class org.openrewrite.trait.SimpleTraitMatcher

    asVisitor, 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

    • test

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