public final class VerilogReference
extends java.lang.Object
VerilogReference
represents references.Constructor and Description |
---|
VerilogReference()
Creates a reference.
|
VerilogReference(VerilogReference other)
Creates a copy of the reference.
|
Modifier and Type | Method and 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() |
public VerilogReference()
public VerilogReference(VerilogReference other)
other
- the reference to be copied.public VerilogPath getPath()
public void setPath(VerilogPath path)
path
- the path to be set.public java.util.List<VerilogRange> getIndicesAndBitsSelection()
public VerilogRange getBitsSelection()
public void addIndexOrBitsSelection(VerilogRange range)
range
- the selection to be added.public boolean hasBitsSelection()
true
iff the reference has bits selection.public void setBitsSelection(boolean bitsSelection)
bitsSelection
- the bits selection flag.public VerilogDeclaration getDeclaration()
public void setDeclaration(VerilogDeclaration declaration)
declaration
- the declaration to be set.public ru.ispras.fortress.expression.Node getNode()
public void setNode(ru.ispras.fortress.expression.Node node)
node
- the node to be set.public java.lang.String toString()
toString
in class java.lang.Object
public VerilogReference clone()
clone
in class java.lang.Object