Package sanskrit

Class Ast.ExceptHandler

java.lang.Object
sanskrit.Node
sanskrit.Ast.ExceptHandler
Enclosing class:
Ast

public static final class Ast.ExceptHandler extends Node
  • Field Details

    • exceptionType

      public final Ast.Expr exceptionType
      The class(es) caught, or null for a bare except.
    • name

      public final String name
      The name after "as", or null.
    • body

      public final List<Ast.Stmt> body
  • Method Details

    • type

      public String type()
      Description copied from class: Node
      The name of the node in CPython's ast module ("Name", "BinOp"...).
      Specified by:
      type in class Node