@Incubating(since="7.25.0")
public final class Guard
extends Object
-
Method Summary
from(org.openrewrite.Cursor cursor)
<T> T
map(Function<org.openrewrite.java.tree.Expression,T> whenExpression,
Function<org.openrewrite.java.tree.J.Case,T> whenCase)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
map
public <T> T map(Function<org.openrewrite.java.tree.Expression,T> whenExpression,
Function<org.openrewrite.java.tree.J.Case,T> whenCase)
-
from
public static Optional<Guard> from(org.openrewrite.Cursor cursor)