public final class VerilogRange
extends java.lang.Object
VerilogRange
represents ranges.Modifier and Type | Class and Description |
---|---|
static class |
VerilogRange.Type
VerilogRange.Type contains the range types. |
Constructor and Description |
---|
VerilogRange()
Creates an range.
|
VerilogRange(VerilogRange other)
Creates a copy of the range.
|
Modifier and Type | Method and Description |
---|---|
VerilogRange |
clone() |
VerilogExpression |
getLeftExpression()
Returns the left expression of the range.
|
VerilogExpression |
getRightExpression()
Returns the right expression of the range.
|
VerilogRange.Type |
getType()
Returns the type of the range.
|
boolean |
isMinus()
Checks whether the range is
MINUS . |
boolean |
isPlus()
Checks whether the range is
PLUS . |
boolean |
isRange()
Checks whether the range is
RANGE . |
void |
setLeftExpression(VerilogExpression lhs)
Sets the left expression of the range.
|
void |
setMinus()
Sets the range type to
MINUS . |
void |
setPlus()
Sets the range type to
PLUS . |
void |
setRange()
Sets the range type to
RANGE . |
void |
setRightExpression(VerilogExpression rhs)
Sets the right expression of the range.
|
void |
setType(VerilogRange.Type type)
Sets the type of the range.
|
java.lang.String |
toString() |
public VerilogRange()
public VerilogRange(VerilogRange other)
other
- the range to be copied.public VerilogRange.Type getType()
public void setType(VerilogRange.Type type)
type
- the type to be set.public boolean isRange()
RANGE
.true
iff the range is RANGE
.public boolean isPlus()
PLUS
.true
iff the range is PLUS
.public boolean isMinus()
MINUS
.true
if the range is MINUS
.public void setRange()
RANGE
.public void setPlus()
PLUS
.public void setMinus()
MINUS
.public VerilogExpression getLeftExpression()
public void setLeftExpression(VerilogExpression lhs)
lhs
- the left expression to be set.public VerilogExpression getRightExpression()
public void setRightExpression(VerilogExpression rhs)
rhs
- the right expression to be set.public java.lang.String toString()
toString
in class java.lang.Object
public VerilogRange clone()
clone
in class java.lang.Object