gnu.bytecode

Class PrimType

public class PrimType extends Type

Constructor Summary
PrimType(String nam, String sig, int siz, Class reflectClass)
protected PrimType(PrimType type)
Method Summary
static booleanbooleanValue(Object value)
Coerce value to a boolean.
charcharValue(Object value)
Coerce value to a char.
ObjectcoerceFromObject(Object obj)
static intcompare(PrimType type1, PrimType type2)
intcompare(Type other)
voidemitCoerceFromObject(CodeAttr code)
voidemitCoerceToObject(CodeAttr code)
voidemitIsInstance(CodeAttr code)

Constructor Detail

PrimType

public PrimType(String nam, String sig, int siz, Class reflectClass)

PrimType

protected PrimType(PrimType type)

Method Detail

booleanValue

public static boolean booleanValue(Object value)
Coerce value to a boolean. Only defined if getSignature() is "Z".

charValue

public char charValue(Object value)
Coerce value to a char. Only defined if getSignature() is "C".

coerceFromObject

public Object coerceFromObject(Object obj)

compare

public static int compare(PrimType type1, PrimType type2)

compare

public int compare(Type other)

emitCoerceFromObject

public void emitCoerceFromObject(CodeAttr code)

emitCoerceToObject

public void emitCoerceToObject(CodeAttr code)

emitIsInstance

public void emitIsInstance(CodeAttr code)