This specialization of BasicType implements the CIntegerType interface and describes all C integer types.
| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides sun. Indicates whether some other object is "equal to" this one. |
| public boolean | isCIntegerType()
Overrides sun. Implements sun. Indicates whether this type is a C integer type -- regardless of size or signedness. |
| public boolean | isUnsigned()
Implements sun. Is this integer type unsigned? |
| public long | maxValue()
Implements sun. What is the maximum value of this type? |
| public long | minValue()
Implements sun. What is the minimum value of this type? |
| public void | setIsUnsigned(boolean isUnsigned)
This should be called at most once, and only by the builder of the TypeDataBase |
| public String | toString()
Overrides sun. Returns a string representation of the object. |
| isUnsigned | back to summary |
|---|---|
| private boolean isUnsigned | |
| BasicCIntegerType | back to summary |
|---|---|
| public BasicCIntegerType(BasicTypeDataBase db, String name, boolean isUnsigned) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides sun. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| isCIntegerType | back to summary |
|---|---|
| public boolean isCIntegerType() Overrides sun. Implements sun. Doc from sun. Indicates whether this type is a C integer type -- regardless of size or signedness. | |
| isUnsigned | back to summary |
|---|---|
| public boolean isUnsigned() Implements sun. Doc from sun. Is this integer type unsigned? | |
| maxValue | back to summary |
|---|---|
| public long maxValue() Implements sun. Doc from sun. What is the maximum value of this type? Note that this will not work properly for unsigned long longs. | |
| minValue | back to summary |
|---|---|
| public long minValue() Implements sun. Doc from sun. What is the minimum value of this type? Note that this will not work properly for unsigned long longs. | |
| setIsUnsigned | back to summary |
|---|---|
| public void setIsUnsigned(boolean isUnsigned) This should be called at most once, and only by the builder of the TypeDataBase | |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |