Class NoMissingTypes

java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,P>
org.openrewrite.java.JavaVisitor<org.openrewrite.ExecutionContext>
org.openrewrite.java.NoMissingTypes

public class NoMissingTypes extends JavaVisitor<org.openrewrite.ExecutionContext>
Puts a search result marker on a JavaSourceFile if there is no missing type information according to FindMissingTypes. So when there _are_ missing types, no changes are made. The intended purpose is as a Preconditions for visitors in danger of removing things they should not when type information is missing.
  • Constructor Details

    • NoMissingTypes

      public NoMissingTypes()
  • Method Details

    • visit

      public org.openrewrite.java.tree.J visit(@Nullable @Nullable org.openrewrite.Tree tree, org.openrewrite.ExecutionContext ctx)
      Overrides:
      visit in class org.openrewrite.TreeVisitor<org.openrewrite.java.tree.J,org.openrewrite.ExecutionContext>