| 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 IPrimitiveType |
addPrimitive(String name, int size, PrimitiveCategory cat, Boolean signed)
Add a primitive or a compiler built-in (~primitive) type.
| ||||||||||
| abstract IPrimitiveType |
addPrimitive(String name, int size)
Add a primitive or a compiler built-in (~primitive) type.
| ||||||||||
| 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 IPrimitiveSizes | getSizes() | ||||||||||
| abstract IPrimitiveType | getType(String name) | ||||||||||
| abstract Collection<? extends IPrimitiveType> | getTypes() | ||||||||||
| 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) | ||||||||||
Add a primitive or a compiler built-in (~primitive) type.
| size | size of the primitive in bytes |
|---|---|
| signed | optional |
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 |
|---|