Package org.openrewrite.python.marker
Class LegacyNotEqual
java.lang.Object
org.openrewrite.python.marker.LegacyNotEqual
- All Implemented Interfaces:
org.openrewrite.marker.Marker,org.openrewrite.rpc.RpcCodec<LegacyNotEqual>
public class LegacyNotEqual
extends Object
implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<LegacyNotEqual>
Marker indicating that a
J.Binary of type NotEqual was written using
the Python 2 <> spelling rather than !=.
The default printer renders Binary.Type.NotEqual as !=; when this
marker is present it emits the legacy <> spelling instead, so Python 2
sources round-trip byte-for-byte.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrpcReceive(LegacyNotEqual before, org.openrewrite.rpc.RpcReceiveQueue q) voidrpcSend(LegacyNotEqual after, org.openrewrite.rpc.RpcSendQueue q) Methods 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
-
Constructor Details
-
LegacyNotEqual
public LegacyNotEqual()
-
-
Method Details
-
rpcSend
- Specified by:
rpcSendin interfaceorg.openrewrite.rpc.RpcCodec<LegacyNotEqual>
-
rpcReceive
- Specified by:
rpcReceivein interfaceorg.openrewrite.rpc.RpcCodec<LegacyNotEqual>
-