public final class VerilogElementType
extends java.lang.Object
VerilogElementType
represents element types.Modifier and Type | Class and Description |
---|---|
static class |
VerilogElementType.Type
VerilogElementType.Type contains the element types. |
Constructor and Description |
---|
VerilogElementType()
Creates an element type.
|
VerilogElementType(VerilogElementType other)
Creates a copy of the element type.
|
Modifier and Type | Method and Description |
---|---|
VerilogElementType |
clone() |
VerilogRange |
getRange()
Returns the range of the element.
|
VerilogStrength |
getStrength()
Returns the strength.
|
VerilogElementType.Type |
getType()
Returns the element type.
|
boolean |
isInteger()
Checks whether the element is
INTEGER . |
boolean |
isNet()
Checks whether the element is a net.
|
boolean |
isNumeric()
Checks whether the element is a numeric variable (
INTEGER or REAL ). |
boolean |
isReal()
Checks whether the element is
REAL . |
boolean |
isRealtime()
Checks whether the element is
REALTIME . |
boolean |
isReg()
Checks whether the element is
REG . |
boolean |
isRegister()
Checks whether the element is a register.
|
boolean |
isScalared()
Checks whether the element is scalared.
|
boolean |
isSigned()
Checks whether the element is signed.
|
boolean |
isSpecified()
Checks whether the type is specified (something is written in the code).
|
boolean |
isSupply0()
Checks whether the element is
SUPPLY0 . |
boolean |
isSupply1()
Checks whether the element is
SUPPLY1 . |
boolean |
isTemporal()
Checks whether the element is a temporal variable (
TIME or REALTIME ). |
boolean |
isTime()
Checks whether the element is
TIME . |
boolean |
isTri()
Checks whether the element is
TRI . |
boolean |
isTri0()
Checks whether the element is
TRI0 . |
boolean |
isTri1()
Checks whether the element is
TRI1 . |
boolean |
isTriand()
Checks whether the element is
TRIAND . |
boolean |
isTrior()
Checks whether the element is
TRIOR . |
boolean |
isTrireg()
Checks whether the element is
TRIREG . |
boolean |
isUwire()
Checks whether the element is
UWIRE . |
boolean |
isVectored()
Checks whether the element is vectored.
|
boolean |
isWand()
Checks whether the element is
WAND . |
boolean |
isWire()
Checks whether the element is
WIRE . |
boolean |
isWor()
Checks whether the element is
WOR . |
void |
setInteger()
Sets the element type to
INTEGER . |
void |
setRange(VerilogRange range)
Sets a range of the element.
|
void |
setReal()
Sets the element type to
REAL . |
void |
setRealtime()
Sets the element type to
REALTIME . |
void |
setReg()
Sets the element type to
REG . |
void |
setScalared()
Sets the scalared property.
|
void |
setSigned()
Sets the signed property.
|
void |
setStrength(VerilogStrength strength)
Sets the strength.
|
void |
setSupply0()
Sets the element type to
SUPPLY0 . |
void |
setSupply1()
Sets the element type to
SUPPLY1 . |
void |
setTime()
Sets the element type to
TIME . |
void |
setTri()
Sets the element type to
TRI . |
void |
setTri0()
Sets the element type to
TRI0 . |
void |
setTri1()
Sets the element type to
TRI1 . |
void |
setTriand()
Sets the element type to
TRIAND . |
void |
setTrior()
Sets the element type to
TRIOR . |
void |
setTrireg()
Sets the element type to
TRIREG . |
void |
setType(VerilogElementType.Type type)
Sets the element type.
|
void |
setUwire()
Sets the element type to
UWIRE . |
void |
setVectored()
Sets the vectored property.
|
void |
setWand()
Sets the element type to
WAND . |
void |
setWire()
Sets the element type to
WIRE . |
void |
setWor()
Sets the element type to
WOR . |
java.lang.String |
toString() |
public VerilogElementType()
public VerilogElementType(VerilogElementType other)
other
- the element type to be copied.public boolean isSpecified()
true
iff the type is specified.public VerilogElementType.Type getType()
public void setType(VerilogElementType.Type type)
type
- the element type to be set.public boolean isInteger()
INTEGER
.true
iff the element is INTEGER
.public boolean isReal()
REAL
.true
iff the element is REAL
.public boolean isTime()
TIME
.true
iff the element is TIME
.public boolean isRealtime()
REALTIME
.true
iff the element is REALTIME
.public boolean isSupply0()
SUPPLY0
.true
iff the element is SUPPLY0
.public boolean isSupply1()
SUPPLY1
.true
iff the element is SUPPLY1
.public boolean isTri()
TRI
.true
iff the element is TRI
.public boolean isTriand()
TRIAND
.true
iff the element is TRIAND
.public boolean isTrior()
TRIOR
.true
iff the element is TRIOR
.public boolean isTri0()
TRI0
.true
iff the element is TRI0
.public boolean isTri1()
TRI1
.true
iff the element is TRI1
.public boolean isUwire()
UWIRE
.true
iff the element is UWIRE
.public boolean isWire()
WIRE
.true
iff the element is WIRE
.public boolean isWand()
WAND
.true
iff the element is WAND
.public boolean isWor()
WOR
.true
iff the element WOR
.public boolean isTrireg()
TRIREG
.true
iff the element TRIREG
.public boolean isReg()
REG
.true
iff the element is REG
.public boolean isNumeric()
INTEGER
or REAL
).true
iff the element is a numeric variable.public boolean isTemporal()
TIME
or REALTIME
).true
iff the element is a temporal variable.public boolean isRegister()
true
iff the element is a register.public boolean isNet()
true
iff the element is a net.public void setInteger()
INTEGER
.public void setReal()
REAL
.public void setTime()
TIME
.public void setRealtime()
REALTIME
.public void setSupply0()
SUPPLY0
.public void setSupply1()
SUPPLY1
.public void setTri()
TRI
.public void setTriand()
TRIAND
.public void setTrior()
TRIOR
.public void setTri0()
TRI0
.public void setTri1()
TRI1
.public void setUwire()
UWIRE
.public void setWire()
WIRE
.public void setWand()
WAND
.public void setWor()
WOR
.public void setTrireg()
TRIREG
.public void setReg()
REG
.public VerilogStrength getStrength()
public void setStrength(VerilogStrength strength)
strength
- the strength to be set.public boolean isVectored()
true
iff the element is vectored.public void setVectored()
public boolean isScalared()
true
iff the element is scalared.public void setScalared()
public boolean isSigned()
true
iff the element is signed.public void setSigned()
public VerilogRange getRange()
public void setRange(VerilogRange range)
range
- the element range.public java.lang.String toString()
toString
in class java.lang.Object
public VerilogElementType clone()
clone
in class java.lang.Object