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 Details

    • RaiseTuple

      public RaiseTuple()
  • Method Details

    • rpcSend

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

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