public interface

IPrimitiveTypeManager

com.pnfsoftware.jeb.core.units.code.asm.type.IPrimitiveTypeManager

Class Overview

A sub-type manager for primitives. It is itself managed by a ITypeManager.

Summary

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)

Public Methods

public abstract IPrimitiveType addPrimitive (String name, int size, PrimitiveCategory cat, Boolean signed)

Add a primitive or a compiler built-in (~primitive) type.

Parameters
size size of the primitive in bytes
signed optional

public abstract IPrimitiveType addPrimitive (String name, int size)

Add a primitive or a compiler built-in (~primitive) type.

Parameters
size size of the primitive in bytes

public abstract IPrimitiveType getExactFloatBySize (int size)

Get the primitive float fitting on the exact amount of bytes.

Parameters
size exact size in bytes

public abstract IPrimitiveType getExactIntegerBySize (int size, boolean signed)

Get the primitive integer fitting on the exact amount of bytes.

Parameters
size exact size in bytes

public abstract IPrimitiveType getIntegerBySize (int size, boolean signed)

Get the smallest primitive integer having at least the provided amount of bytes.

Parameters
size minimal size in bytes

public abstract IPrimitiveSizes getSizes ()

public abstract IPrimitiveType getType (String name)

public abstract Collection<? extends IPrimitiveType> getTypes ()

public abstract boolean isCharacter (IPrimitiveType t)

public abstract boolean isFloat (IPrimitiveType t)

public abstract boolean isInteger (IPrimitiveType t)

public abstract boolean isSignedInteger (IPrimitiveType t)

public abstract boolean isUnsignedInteger (IPrimitiveType t)

public abstract boolean isVoid (IPrimitiveType t)