Class VerilogReference
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogReference
-
public final class VerilogReference extends java.lang.Object
VerilogReference
represents references.
-
-
Constructor Summary
Constructors Constructor Description VerilogReference()
Creates a reference.VerilogReference(VerilogReference other)
Creates a copy of the reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addIndexOrBitsSelection(VerilogRange range)
Adds the selection to the reference.VerilogReference
clone()
VerilogRange
getBitsSelection()
Returns the range for bits selection.VerilogDeclaration
getDeclaration()
Returns the declaration (the reference descriptor).java.util.List<VerilogRange>
getIndicesAndBitsSelection()
Returns the list of ranges.ru.ispras.fortress.expression.Node
getNode()
Returns the node representing the reference.VerilogPath
getPath()
Returns the reference path.boolean
hasBitsSelection()
Checks whether the reference has bits selection.void
setBitsSelection(boolean bitsSelection)
Sets the bits selection flag.void
setDeclaration(VerilogDeclaration declaration)
Sets the declaration (the reference descriptor).void
setNode(ru.ispras.fortress.expression.Node node)
Sets the node representation of the reference.void
setPath(VerilogPath path)
Sets the reference path.java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
clone
public VerilogReference clone()
- Overrides:
clone
in classjava.lang.Object
-
-