Class VerilogElementType
- java.lang.Object
-
- ru.ispras.verilog.parser.model.basis.VerilogElementType
-
public final class VerilogElementType extends java.lang.Object
VerilogElementType
represents element types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerilogElementType.Type
VerilogElementType.Type
contains the element types.
-
Constructor Summary
Constructors Constructor Description VerilogElementType()
Creates an element type.VerilogElementType(VerilogElementType other)
Creates a copy of the element type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerilogElementType
clone()
VerilogRange
getRange()
Returns the range of the element.VerilogStrength
getStrength()
Returns the strength.VerilogElementType.Type
getType()
Returns the element type.boolean
isByte()
Checks whether the element isBYTE
.boolean
isInteger()
Checks whether the element isINTEGER
.boolean
isLongInt()
Checks whether the element isLONGINT
.boolean
isNet()
Checks whether the element is a net.boolean
isNumeric()
Checks whether the element is a numeric variable (INTEGER
orREAL
).boolean
isProperty()
Checks whether the element isPROPERTY
.boolean
isReal()
Checks whether the element isREAL
.boolean
isRealtime()
Checks whether the element isREALTIME
.boolean
isReg()
Checks whether the element isREG
.boolean
isRegister()
Checks whether the element is a register.boolean
isScalared()
Checks whether the element is scalared.boolean
isSequence()
Checks whether the element isSEQUENCE
.boolean
isShortInt()
Checks whether the element isSHORTINT
.boolean
isShortReal()
Checks whether the element isSHORTREAL
.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 isSUPPLY0
.boolean
isSupply1()
Checks whether the element isSUPPLY1
.boolean
isTemporal()
Checks whether the element is a temporal variable (TIME
orREALTIME
).boolean
isTime()
Checks whether the element isTIME
.boolean
isTri()
Checks whether the element isTRI
.boolean
isTri0()
Checks whether the element isTRI0
.boolean
isTri1()
Checks whether the element isTRI1
.boolean
isTriand()
Checks whether the element isTRIAND
.boolean
isTrior()
Checks whether the element isTRIOR
.boolean
isTrireg()
Checks whether the element isTRIREG
.boolean
isUndefined()
Checks whether the element isUNDEFINED
.boolean
isUwire()
Checks whether the element isUWIRE
.boolean
isVectored()
Checks whether the element is vectored.boolean
isWand()
Checks whether the element isWAND
.boolean
isWire()
Checks whether the element isWIRE
.boolean
isWor()
Checks whether the element isWOR
.void
setByte()
Sets the element type toBYTE
.void
setInteger()
Sets the element type toINTEGER
.void
setLongInt()
Sets the element type toLONGINT
.void
setProperty()
Sets the element type toPROPERTY
.void
setRange(VerilogRange range)
Sets a range of the element.void
setReal()
Sets the element type toREAL
.void
setRealtime()
Sets the element type toREALTIME
.void
setReg()
Sets the element type toREG
.void
setScalared()
Sets the scalared property.void
setSequence()
Sets the element type toSEQUENCE
.void
setShortInt()
Sets the element type toSHORTINT
.void
setShortReal()
Sets the element type toSHORTREAL
.void
setSigned()
Sets the signed property.void
setStrength(VerilogStrength strength)
Sets the strength.void
setSupply0()
Sets the element type toSUPPLY0
.void
setSupply1()
Sets the element type toSUPPLY1
.void
setTime()
Sets the element type toTIME
.void
setTri()
Sets the element type toTRI
.void
setTri0()
Sets the element type toTRI0
.void
setTri1()
Sets the element type toTRI1
.void
setTriand()
Sets the element type toTRIAND
.void
setTrior()
Sets the element type toTRIOR
.void
setTrireg()
Sets the element type toTRIREG
.void
setType(VerilogElementType.Type type)
Sets the element type.void
setUwire()
Sets the element type toUWIRE
.void
setVectored()
Sets the vectored property.void
setWand()
Sets the element type toWAND
.void
setWire()
Sets the element type toWIRE
.void
setWor()
Sets the element type toWOR
.java.lang.String
toString()
-
-
-
Constructor Detail
-
VerilogElementType
public VerilogElementType()
Creates an element type.
-
VerilogElementType
public VerilogElementType(VerilogElementType other)
Creates a copy of the element type.- Parameters:
other
- the element type to be copied.
-
-
Method Detail
-
isSpecified
public boolean isSpecified()
Checks whether the type is specified (something is written in the code).- Returns:
true
iff the type is specified.
-
getType
public VerilogElementType.Type getType()
Returns the element type.- Returns:
- the element type.
-
setType
public void setType(VerilogElementType.Type type)
Sets the element type.- Parameters:
type
- the element type to be set.
-
isInteger
public boolean isInteger()
Checks whether the element isINTEGER
.- Returns:
true
iff the element isINTEGER
.
-
isReal
public boolean isReal()
Checks whether the element isREAL
.- Returns:
true
iff the element isREAL
.
-
isTime
public boolean isTime()
Checks whether the element isTIME
.- Returns:
true
iff the element isTIME
.
-
isRealtime
public boolean isRealtime()
Checks whether the element isREALTIME
.- Returns:
true
iff the element isREALTIME
.
-
isSupply0
public boolean isSupply0()
Checks whether the element isSUPPLY0
.- Returns:
true
iff the element isSUPPLY0
.
-
isSupply1
public boolean isSupply1()
Checks whether the element isSUPPLY1
.- Returns:
true
iff the element isSUPPLY1
.
-
isTri
public boolean isTri()
Checks whether the element isTRI
.- Returns:
true
iff the element isTRI
.
-
isTriand
public boolean isTriand()
Checks whether the element isTRIAND
.- Returns:
true
iff the element isTRIAND
.
-
isTrior
public boolean isTrior()
Checks whether the element isTRIOR
.- Returns:
true
iff the element isTRIOR
.
-
isTri0
public boolean isTri0()
Checks whether the element isTRI0
.- Returns:
true
iff the element isTRI0
.
-
isTri1
public boolean isTri1()
Checks whether the element isTRI1
.- Returns:
true
iff the element isTRI1
.
-
isUwire
public boolean isUwire()
Checks whether the element isUWIRE
.- Returns:
true
iff the element isUWIRE
.
-
isWire
public boolean isWire()
Checks whether the element isWIRE
.- Returns:
true
iff the element isWIRE
.
-
isWand
public boolean isWand()
Checks whether the element isWAND
.- Returns:
true
iff the element isWAND
.
-
isWor
public boolean isWor()
Checks whether the element isWOR
.- Returns:
true
iff the elementWOR
.
-
isTrireg
public boolean isTrireg()
Checks whether the element isTRIREG
.- Returns:
true
iff the elementTRIREG
.
-
isReg
public boolean isReg()
Checks whether the element isREG
.- Returns:
true
iff the element isREG
.
-
isSequence
public boolean isSequence()
Checks whether the element isSEQUENCE
.- Returns:
true
iff the element isSEQUENCE
.
-
isProperty
public boolean isProperty()
Checks whether the element isPROPERTY
.- Returns:
true
iff the element isPROPERTY
.
-
isUndefined
public boolean isUndefined()
Checks whether the element isUNDEFINED
.- Returns:
true
iff the element isUNDEFINED
.
-
isByte
public boolean isByte()
Checks whether the element isBYTE
.- Returns:
true
iff the element isBYTE
.
-
isShortInt
public boolean isShortInt()
Checks whether the element isSHORTINT
.- Returns:
true
iff the element isSHORTINT
.
-
isLongInt
public boolean isLongInt()
Checks whether the element isLONGINT
.- Returns:
true
iff the element isLONGINT
.
-
isShortReal
public boolean isShortReal()
Checks whether the element isSHORTREAL
.- Returns:
true
iff the element isSHORTREAL
.
-
isNumeric
public boolean isNumeric()
Checks whether the element is a numeric variable (INTEGER
orREAL
).- Returns:
true
iff the element is a numeric variable.
-
isTemporal
public boolean isTemporal()
Checks whether the element is a temporal variable (TIME
orREALTIME
).- Returns:
true
iff the element is a temporal variable.
-
isRegister
public boolean isRegister()
Checks whether the element is a register.- Returns:
true
iff the element is a register.
-
isNet
public boolean isNet()
Checks whether the element is a net.- Returns:
true
iff the element is a net.
-
setInteger
public void setInteger()
Sets the element type toINTEGER
.
-
setReal
public void setReal()
Sets the element type toREAL
.
-
setTime
public void setTime()
Sets the element type toTIME
.
-
setRealtime
public void setRealtime()
Sets the element type toREALTIME
.
-
setSupply0
public void setSupply0()
Sets the element type toSUPPLY0
.
-
setSupply1
public void setSupply1()
Sets the element type toSUPPLY1
.
-
setTri
public void setTri()
Sets the element type toTRI
.
-
setTriand
public void setTriand()
Sets the element type toTRIAND
.
-
setTrior
public void setTrior()
Sets the element type toTRIOR
.
-
setTri0
public void setTri0()
Sets the element type toTRI0
.
-
setTri1
public void setTri1()
Sets the element type toTRI1
.
-
setUwire
public void setUwire()
Sets the element type toUWIRE
.
-
setWire
public void setWire()
Sets the element type toWIRE
.
-
setWand
public void setWand()
Sets the element type toWAND
.
-
setWor
public void setWor()
Sets the element type toWOR
.
-
setTrireg
public void setTrireg()
Sets the element type toTRIREG
.
-
setReg
public void setReg()
Sets the element type toREG
.
-
setSequence
public void setSequence()
Sets the element type toSEQUENCE
.
-
setProperty
public void setProperty()
Sets the element type toPROPERTY
.
-
setByte
public void setByte()
Sets the element type toBYTE
.
-
setShortInt
public void setShortInt()
Sets the element type toSHORTINT
.
-
setLongInt
public void setLongInt()
Sets the element type toLONGINT
.
-
setShortReal
public void setShortReal()
Sets the element type toSHORTREAL
.
-
getStrength
public VerilogStrength getStrength()
Returns the strength.- Returns:
- the strength.
-
setStrength
public void setStrength(VerilogStrength strength)
Sets the strength.- Parameters:
strength
- the strength to be set.
-
isVectored
public boolean isVectored()
Checks whether the element is vectored.- Returns:
true
iff the element is vectored.
-
setVectored
public void setVectored()
Sets the vectored property.
-
isScalared
public boolean isScalared()
Checks whether the element is scalared.- Returns:
true
iff the element is scalared.
-
setScalared
public void setScalared()
Sets the scalared property.
-
isSigned
public boolean isSigned()
Checks whether the element is signed.- Returns:
true
iff the element is signed.
-
setSigned
public void setSigned()
Sets the signed property.
-
getRange
public VerilogRange getRange()
Returns the range of the element.- Returns:
- the element range.
-
setRange
public void setRange(VerilogRange range)
Sets a range of the element.- Parameters:
range
- the element range.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
clone
public VerilogElementType clone()
- Overrides:
clone
in classjava.lang.Object
-
-