Package org.openrewrite.python.marker
Class TupleExceptClause
java.lang.Object
org.openrewrite.python.marker.TupleExceptClause
- All Implemented Interfaces:
org.openrewrite.marker.Marker,org.openrewrite.rpc.RpcCodec<TupleExceptClause>
public class TupleExceptClause
extends Object
implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<TupleExceptClause>
Marker indicating that a
J.Try.Catch was written using the Python 2
except E, e: comma form rather than the Python 3 except E as e:
form.
The default printer renders the catch as except E as e:; when this
marker is present it emits the Py2 comma-based syntax instead so Python 2
sources round-trip byte-for-byte.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrpcReceive(TupleExceptClause before, org.openrewrite.rpc.RpcReceiveQueue q) voidrpcSend(TupleExceptClause 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
-
TupleExceptClause
public TupleExceptClause()
-
-
Method Details
-
rpcSend
- Specified by:
rpcSendin interfaceorg.openrewrite.rpc.RpcCodec<TupleExceptClause>
-
rpcReceive
public TupleExceptClause rpcReceive(TupleExceptClause before, org.openrewrite.rpc.RpcReceiveQueue q) - Specified by:
rpcReceivein interfaceorg.openrewrite.rpc.RpcCodec<TupleExceptClause>
-