Class VerilogRange


  • public final class VerilogRange
    extends java.lang.Object
    VerilogRange represents ranges.
    • Constructor Detail

      • VerilogRange

        public VerilogRange()
        Creates an range.
      • VerilogRange

        public VerilogRange​(VerilogRange other)
        Creates a copy of the range.
        Parameters:
        other - the range to be copied.
    • Method Detail

      • getType

        public VerilogRange.Type getType()
        Returns the type of the range.
        Returns:
        the range type.
      • setType

        public void setType​(VerilogRange.Type type)
        Sets the type of the range.
        Parameters:
        type - the type to be set.
      • isRange

        public boolean isRange()
        Checks whether the range is RANGE.
        Returns:
        true iff the range is RANGE.
      • isPlus

        public boolean isPlus()
        Checks whether the range is PLUS.
        Returns:
        true iff the range is PLUS.
      • isMinus

        public boolean isMinus()
        Checks whether the range is MINUS.
        Returns:
        true if the range is MINUS.
      • setRange

        public void setRange()
        Sets the range type to RANGE.
      • setPlus

        public void setPlus()
        Sets the range type to PLUS.
      • setMinus

        public void setMinus()
        Sets the range type to MINUS.
      • getLeftExpression

        public VerilogExpression getLeftExpression()
        Returns the left expression of the range.
        Returns:
        the left expression.
      • setLeftExpression

        public void setLeftExpression​(VerilogExpression lhs)
        Sets the left expression of the range.
        Parameters:
        lhs - the left expression to be set.
      • getRightExpression

        public VerilogExpression getRightExpression()
        Returns the right expression of the range.
        Returns:
        the right expression.
      • setRightExpression

        public void setRightExpression​(VerilogExpression rhs)
        Sets the right expression of the range.
        Parameters:
        rhs - the right expression to be set.
      • toString

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

        public VerilogRange clone()
        Overrides:
        clone in class java.lang.Object