Class CursorUtil
java.lang.Object
org.openrewrite.java.security.internal.CursorUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<org.openrewrite.Cursor>findOuterExecutableBlock(org.openrewrite.Cursor start) Find the outermost executableJ.Blockthat is an executable set of instructions.static org.openrewrite.CursorfindOuterExecutableBlockOrThrow(org.openrewrite.Cursor start)
-
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
-
findOuterExecutableBlockOrThrow
public static org.openrewrite.Cursor findOuterExecutableBlockOrThrow(org.openrewrite.Cursor start)
-