|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Type
SFE.Compiler.BusType
public class BusType
A class representing a value of the primitive bus of an arbitrary length. An object of type bus contains a single field whose type is int and represents the its length. An bus type of one bit is actualy a boolean variable.
Constructor Summary | |
---|---|
BusType(int length)
Constructs a new bus from a given length. |
Method Summary | |
---|---|
int |
size()
Returns the size of the bus in bits |
java.lang.String |
toFormat()
Returns a string representation of the object for the format file. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class SFE.Compiler.Type |
---|
defineName, fromName, getDerivedLvalues, hasDerives |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BusType(int length)
length
- the length of the bus.Method Detail |
---|
public int size()
size
in class Type
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toFormat()
toFormat
in class Type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |