public class BasicCIntegerType extends BasicType implements CIntegerType
This specialization of BasicType implements the CIntegerType interface and describes all C integer types.
Constructor and Description |
---|
BasicCIntegerType(BasicTypeDataBase db,
java.lang.String name,
boolean isUnsigned) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
isCIntegerType()
Overridden by BasicCIntegerType
|
boolean |
isUnsigned()
Is this integer type unsigned?
|
long |
maxValue()
What is the maximum value of this type? Note that this will not
work properly for unsigned long longs.
|
long |
minValue()
What is the minimum value of this type? Note that this will not
work properly for unsigned long longs.
|
void |
setIsUnsigned(boolean isUnsigned)
This should be called at most once, and only by the builder of
the TypeDataBase
|
java.lang.String |
toString() |
addField, getAddressField, getCIntegerField, getField, getField, getField, getField, getField, getFields, getJBooleanField, getJByteField, getJCharField, getJDoubleField, getJFloatField, getJIntField, getJLongField, getJShortField, getName, getNarrowOopField, getOopField, getSize, getSuperclass, hashCode, isCStringType, isJavaPrimitiveType, isOopType, isPointerType, removeField, setIsJavaPrimitiveType, setIsOopType, setSize, setSuperclass
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAddressField, getCIntegerField, getField, getField, getField, getField, getField, getFields, getJBooleanField, getJByteField, getJCharField, getJDoubleField, getJFloatField, getJIntField, getJLongField, getJShortField, getName, getNarrowOopField, getOopField, getSize, getSuperclass, isCStringType, isJavaPrimitiveType, isOopType, isPointerType
public BasicCIntegerType(BasicTypeDataBase db, java.lang.String name, boolean isUnsigned)
public boolean isCIntegerType()
BasicType
isCIntegerType
in interface Type
isCIntegerType
in class BasicType
public boolean isUnsigned()
CIntegerType
isUnsigned
in interface CIntegerType
public void setIsUnsigned(boolean isUnsigned)
public long maxValue()
CIntegerType
maxValue
in interface CIntegerType
public long minValue()
CIntegerType
minValue
in interface CIntegerType
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.