Package org.openrewrite.java.marker
Class NullSafe
java.lang.Object
org.openrewrite.java.marker.NullSafe
- All Implemented Interfaces:
org.openrewrite.marker.Marker,org.openrewrite.rpc.RpcCodec<NullSafe>
public class NullSafe
extends Object
implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<NullSafe>
Marker indicating null-safe navigation (?. operator).
Used by languages with safe navigation: C#, Kotlin, Groovy.
When present on a MethodInvocation.name or FieldAccess.name, prints ?. instead of .
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrpcReceive(NullSafe before, org.openrewrite.rpc.RpcReceiveQueue q) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.marker.Marker
getId, print, withId