Class VerilogReference


  • public final class VerilogReference
    extends java.lang.Object
    VerilogReference represents references.
    • Constructor Detail

      • VerilogReference

        public VerilogReference()
        Creates a reference.
      • VerilogReference

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

      • getPath

        public VerilogPath getPath()
        Returns the reference path.
        Returns:
        the path.
      • setPath

        public void setPath​(VerilogPath path)
        Sets the reference path.
        Parameters:
        path - the path to be set.
      • getIndicesAndBitsSelection

        public java.util.List<VerilogRange> getIndicesAndBitsSelection()
        Returns the list of ranges.
        Returns:
        the list of ranges.
      • getBitsSelection

        public VerilogRange getBitsSelection()
        Returns the range for bits selection.
        Returns:
        the range for bits selection.
      • addIndexOrBitsSelection

        public void addIndexOrBitsSelection​(VerilogRange range)
        Adds the selection to the reference.
        Parameters:
        range - the selection to be added.
      • hasBitsSelection

        public boolean hasBitsSelection()
        Checks whether the reference has bits selection.
        Returns:
        true iff the reference has bits selection.
      • setBitsSelection

        public void setBitsSelection​(boolean bitsSelection)
        Sets the bits selection flag.
        Parameters:
        bitsSelection - the bits selection flag.
      • getDeclaration

        public VerilogDeclaration getDeclaration()
        Returns the declaration (the reference descriptor).
        Returns:
        the declaration.
      • setDeclaration

        public void setDeclaration​(VerilogDeclaration declaration)
        Sets the declaration (the reference descriptor).
        Parameters:
        declaration - the declaration to be set.
      • getNode

        public ru.ispras.fortress.expression.Node getNode()
        Returns the node representing the reference.
        Returns:
        the node.
      • setNode

        public void setNode​(ru.ispras.fortress.expression.Node node)
        Sets the node representation of the reference.
        Parameters:
        node - the node to be set.
      • toString

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

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