Class CursorUtil

java.lang.Object
org.openrewrite.java.security.internal.CursorUtil

public class CursorUtil extends Object
  • Constructor Details

    • CursorUtil

      public CursorUtil()
  • Method Details

    • findOuterExecutableBlock

      public static Optional<org.openrewrite.Cursor> findOuterExecutableBlock(org.openrewrite.Cursor start)
      Find the outermost executable J.Block that is an executable set of instructions. This is one of the following:
      • A J.Block that is either static or an init block.
      • The block held by a J.MethodInvocation.
    • canSupportScopeSupportExceptionOfType

      public static boolean canSupportScopeSupportExceptionOfType(org.openrewrite.Cursor cursor, org.openrewrite.java.tree.JavaType exceptionType)