Class Parenthesis

  • All Implemented Interfaces:
    IAttributeAccess

    public class Parenthesis
    extends ConstraintSyntaxTree
    Represents a parenthesis. The value of a parenthesis is just the value of the contained expression. This class is used to represent explicit sub expressions.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • Parenthesis

        Parenthesis()
        Constructor for serialization.
      • Parenthesis

        public Parenthesis​(ConstraintSyntaxTree expr)
        Creates a new parenthesis node.
        Parameters:
        expr - the nested expression
    • Method Detail

      • getExpr

        public ConstraintSyntaxTree getExpr()
        Returns the nested expression.
        Returns:
        the nested expression
      • equals

        public boolean equals​(java.lang.Object obj)
        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