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 Details

    • NullSafe

      public NullSafe(UUID id)
    • NullSafe

      public NullSafe(UUID id, Space dotPrefix)
  • Method Details

    • rpcSend

      public void rpcSend(NullSafe after, org.openrewrite.rpc.RpcSendQueue q)
      Specified by:
      rpcSend in interface org.openrewrite.rpc.RpcCodec<NullSafe>
    • rpcReceive

      public NullSafe rpcReceive(NullSafe before, org.openrewrite.rpc.RpcReceiveQueue q)
      Specified by:
      rpcReceive in interface org.openrewrite.rpc.RpcCodec<NullSafe>