Class WithStatement

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WithStatement>

    public class WithStatement
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<WithStatement>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.python.syntax.WithStatement type.
      • ASYNC

        public static final Name ASYNC
        Name of the hydra.python.syntax.WithStatement.async field.
      • ITEMS

        public static final Name ITEMS
        Name of the hydra.python.syntax.WithStatement.items field.
      • TYPE_COMMENT

        public static final Name TYPE_COMMENT
        Name of the hydra.python.syntax.WithStatement.typeComment field.
      • BODY

        public static final Name BODY
        Name of the hydra.python.syntax.WithStatement.body field.
      • async

        public final java.lang.Boolean async
      • items

        public final java.util.List<WithItem> items
      • body

        public final Block body
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(WithStatement other)
        Specified by:
        compareTo in interface java.lang.Comparable<WithStatement>
      • withAsync

        public WithStatement withAsync​(java.lang.Boolean async)
        Returns a copy of this WithStatement with async replaced.