Package org.openrewrite.python.marker
Class RaiseTuple
java.lang.Object
org.openrewrite.python.marker.RaiseTuple
- All Implemented Interfaces:
org.openrewrite.marker.Marker,org.openrewrite.rpc.RpcCodec<RaiseTuple>
public class RaiseTuple
extends Object
implements org.openrewrite.marker.Marker, org.openrewrite.rpc.RpcCodec<RaiseTuple>
Marker indicating that a
J.Throw represents a Python 2 three-argument
raise E, v, tb form.
The exception slot of the J.Throw holds a Py.CollectionLiteral of
kind TUPLE containing the three operands; when this marker is present the
printer drops the tuple's enclosing parentheses and renders the legacy comma-
separated syntax so Python 2 sources round-trip byte-for-byte.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrpcReceive(RaiseTuple before, org.openrewrite.rpc.RpcReceiveQueue q) voidrpcSend(RaiseTuple 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
-
RaiseTuple
public RaiseTuple()
-
-
Method Details
-
rpcSend
- Specified by:
rpcSendin interfaceorg.openrewrite.rpc.RpcCodec<RaiseTuple>
-
rpcReceive
- Specified by:
rpcReceivein interfaceorg.openrewrite.rpc.RpcCodec<RaiseTuple>
-