Class BranchingStatement

  • All Implemented Interfaces:
    Cloneable, LanguageObject

    public class BranchingStatement
    extends Statement

    This class represents a break statement in the storedprocedure language. It extends the Statement that could part of a block.

    • Method Detail

      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • getType

        public int getType()
        Return the type for this statement, this is one of the types defined on the statement object.
        Specified by:
        getType in class Statement
        Returns:
        Type from TYPE constants
      • acceptVisitor

        public void acceptVisitor​(LanguageVisitor visitor)
        Description copied from interface: LanguageObject
        Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.
        Parameters:
        visitor - Visitor being used
      • equals

        public boolean equals​(Object obj)
        Compare two BreakStatements for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - Other object
        Returns:
        True if equal
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object