Class VerilogPathDeclaration

    • Constructor Detail

      • VerilogPathDeclaration

        public VerilogPathDeclaration​(VerilogNode parent)
        Creates a path declaration.
        Parameters:
        parent - the parent node.
      • VerilogPathDeclaration

        public VerilogPathDeclaration​(VerilogPathDeclaration other,
                                      VerilogNode parent)
        Creates a copy of path declaration.
        Parameters:
        other - the path declaration to be copied.
        parent - the parent node.
    • Method Detail

      • setType

        public void setType​(VerilogPathDeclaration.Type type)
        Sets the type of the path declaration.
        Parameters:
        type - the type to be set.
      • isIf

        public boolean isIf()
        Checks whether the path declaration is IF.
        Returns:
        true iff the path declaration is IF.
      • isIfNone

        public boolean isIfNone()
        Checks whether the path declaration is IF_NONE.
        Returns:
        true iff the path declaration is IF_NONE.
      • setIf

        public void setIf()
        Sets the path declaration type to IF.
      • setIfNone

        public void setIfNone()
        Sets the path declaration type to IF_NONE.
      • getExpression

        public VerilogExpression getExpression()
        Returns the condition of the path declaration (only for IF).
        Returns:
        the condition.
      • setExpression

        public void setExpression​(VerilogExpression expression)
        Sets the condition of the path declaration (only for IF).
        Parameters:
        expression - the condition to be set.
      • getDescription

        public VerilogPathDescription getDescription()
        Returns the path description (only for SIMPLE).
        Returns:
        the path description.
      • setDescription

        public void setDescription​(VerilogPathDescription description)
        Sets the path description (only for SIMPLE).
        Parameters:
        description - the description to be set.
      • getDelay

        public VerilogDelay getDelay()
        Returns the path delay value (only for SIMPLE).
        Returns:
        the path delay value.
      • setDelay

        public void setDelay​(VerilogDelay delay)
        Sets the path delay value (only for SIMPLE).
        Parameters:
        delay - the delay to be set.
      • getThen

        public VerilogPathDeclaration getThen()
        Returns the child path declaration (only for IF and IF_NONE).
        Returns:
        the child path declaration.
      • setThen

        public void setThen​(VerilogPathDeclaration then)
        Sets the child path declaration (only for IF).
        Parameters:
        then - the declaration to be set.