Class BreakStatement


  • public class BreakStatement
    extends Statement
    Statement used to interrupt further execution of a loop body and exit the respective loop context. Can have a loop label, e.g. in Java, to specify which of the nested loops should be broken out of.
    • Constructor Detail

      • BreakStatement

        public BreakStatement()
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
        Specifies the label of the loop in a nested structure that this statement will 'break'
        Returns:
        the label
      • setLabel

        public void setLabel​(java.lang.String label)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Statement