Class UnaryFromClause

  • All Implemented Interfaces:
    Cloneable, LanguageObject

    public class UnaryFromClause
    extends FromClause
    A FROM subpart that represents a single group. For example, the FROM clause: "FROM a, b" will have two UnaryFromClause objects, each holding a reference to a GroupSymbol (for a and b).
    • Constructor Detail

      • UnaryFromClause

        public UnaryFromClause()
        Construct default object
      • UnaryFromClause

        public UnaryFromClause​(GroupSymbol group)
        Construct object with specified group
        Parameters:
        group - Group being held
    • Method Detail

      • setGroup

        public void setGroup​(GroupSymbol group)
        Set the group held by the clause
        Parameters:
        group - Group to hold
      • getGroup

        public GroupSymbol getGroup()
        Get group held by clause
        Returns:
        Group held by clause
      • equals

        public boolean equals​(Object obj)
        Check whether objects are equal
        Overrides:
        equals in class FromClause
        Parameters:
        obj - Other object
        Returns:
        True if equal
      • hashCode

        public int hashCode()
        Get hash code of object
        Overrides:
        hashCode in class Object
        Returns:
        Hash code
      • getExpandedCommand

        public Command getExpandedCommand()
        Returns:
        Returns the expandedCommand.
      • setExpandedCommand

        public void setExpandedCommand​(Command expandedCommand)
        Parameters:
        expandedCommand - The expandedCommand to set.