Class CursorUtil
java.lang.Object
org.openrewrite.java.security.internal.CursorUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancanSupportScopeSupportExceptionOfType(org.openrewrite.Cursor cursor, org.openrewrite.java.tree.JavaType exceptionType) static Optional<org.openrewrite.Cursor>findOuterExecutableBlock(org.openrewrite.Cursor start) Find the outermost executableJ.Blockthat is an executable set of instructions.
-
Constructor Details
-
CursorUtil
public CursorUtil()
-
-
Method Details
-
findOuterExecutableBlock
public static Optional<org.openrewrite.Cursor> findOuterExecutableBlock(org.openrewrite.Cursor start) Find the outermost executableJ.Blockthat is an executable set of instructions. This is one of the following:- A
J.Blockthat is either static or an init block. - The block held by a
J.MethodInvocation.
- A
-
canSupportScopeSupportExceptionOfType
public static boolean canSupportScopeSupportExceptionOfType(org.openrewrite.Cursor cursor, org.openrewrite.java.tree.JavaType exceptionType)
-