Package sanskrit

Class Ast.FormattedValue

java.lang.Object
sanskrit.Node
sanskrit.Ast.Expr
sanskrit.Ast.FormattedValue
Enclosing class:
Ast

public static final class Ast.FormattedValue extends Ast.Expr
  • Field Details

    • value

      public final Ast.Expr value
    • conversion

      public final long conversion
      -1 (none), or the code of 's', 'r' or 'a'.
    • formatSpec

      public final Ast.Expr formatSpec
      A Ast.JoinedStr, or null.
  • 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