com.pnfsoftware.jeb.core.units.code.asm.type.IPrimitiveTypeManager |
A sub-type manager for primitives. It is itself managed by a ITypeManager
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean | addAlternateName(IPrimitiveType t, String name, boolean setAsEffectiveName) | ||||||||||
abstract IPrimitiveType |
addPrimitive(String name, int size, PrimitiveCategory cat)
Add a primitive or a compiler built-in (~primitive) type.
| ||||||||||
abstract List<String> | getAlternateNames(IPrimitiveType t) | ||||||||||
abstract IPrimitiveType |
getExactFloatBySize(int size)
Get the primitive float fitting on the exact amount of bytes.
| ||||||||||
abstract IPrimitiveType |
getExactIntegerBySize(int size, boolean signed)
Get the primitive integer fitting on the exact amount of bytes.
| ||||||||||
abstract IPrimitiveType |
getIntegerBySize(int size, boolean signed)
Get the smallest primitive integer having at least the provided amount of bytes.
| ||||||||||
abstract Collection<String> |
getNames()
Retrieve a list of all primitive type names.
| ||||||||||
abstract IPrimitiveSizes | getSizes() | ||||||||||
abstract IPrimitiveType | getType(String name) | ||||||||||
abstract Collection<IPrimitiveType> |
getTypes()
Retrieve a list of the principal primitive types.
| ||||||||||
abstract boolean | isCharacter(IPrimitiveType t) | ||||||||||
abstract boolean | isFloat(IPrimitiveType t) | ||||||||||
abstract boolean | isInteger(IPrimitiveType t) | ||||||||||
abstract boolean | isSignedInteger(IPrimitiveType t) | ||||||||||
abstract boolean | isUnsignedInteger(IPrimitiveType t) | ||||||||||
abstract boolean | isVoid(IPrimitiveType t) | ||||||||||
abstract boolean | setEffectiveName(IPrimitiveType t, String name) |
Add a primitive or a compiler built-in (~primitive) type.
size | size of the primitive in bytes |
---|
Get the primitive float fitting on the exact amount of bytes.
size | exact size in bytes |
---|
Get the primitive integer fitting on the exact amount of bytes.
size | exact size in bytes |
---|
Get the smallest primitive integer having at least the provided amount of bytes.
size | minimal size in bytes |
---|
Retrieve a list of all primitive type names. Alternates are returned.
Retrieve a list of the principal primitive types. Alternates are not returned.