gnu.kawa.lispexpr

Class LangPrimType

public class LangPrimType extends PrimType implements TypeValue

Use to implement some special types that convert differently.
Field Summary
static LangPrimTypebyteType
static LangPrimTypecharType
static LangPrimTypedoubleType
static LangPrimTypefloatType
static LangPrimTypeintType
static LangPrimTypelongType
static LangPrimTypeshortType
static LangPrimTypevoidType
Constructor Summary
LangPrimType(PrimType type)
LangPrimType(PrimType type, Language language)
LangPrimType(String nam, String sig, int siz, Class reflectClass)
LangPrimType(String nam, String sig, int siz, Class reflectClass, Language language)
Method Summary
charcharValue(Object value)
ObjectcoerceFromObject(Object obj)
ObjectcoerceToObject(Object obj)
intcompare(Type other)
voidemitCoerceFromObject(CodeAttr code)
voidemitCoerceToObject(CodeAttr code)
voidemitIsInstance(CodeAttr code)
voidemitIsInstance(Variable incoming, Compilation comp, Target target)
voidemitTestIf(Variable incoming, Declaration decl, Compilation comp)
ProceduregetConstructor()
TypegetImplementationType()

Field Detail

byteType

public static final LangPrimType byteType

charType

public static final LangPrimType charType

doubleType

public static final LangPrimType doubleType

floatType

public static final LangPrimType floatType

intType

public static final LangPrimType intType

longType

public static final LangPrimType longType

shortType

public static final LangPrimType shortType

voidType

public static final LangPrimType voidType

Constructor Detail

LangPrimType

public LangPrimType(PrimType type)

LangPrimType

public LangPrimType(PrimType type, Language language)

LangPrimType

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

LangPrimType

public LangPrimType(String nam, String sig, int siz, Class reflectClass, Language language)

Method Detail

charValue

public char charValue(Object value)

coerceFromObject

public Object coerceFromObject(Object obj)

coerceToObject

public Object coerceToObject(Object obj)

compare

public int compare(Type other)

emitCoerceFromObject

public void emitCoerceFromObject(CodeAttr code)

emitCoerceToObject

public void emitCoerceToObject(CodeAttr code)

emitIsInstance

public void emitIsInstance(CodeAttr code)

emitIsInstance

public void emitIsInstance(Variable incoming, Compilation comp, Target target)

emitTestIf

public void emitTestIf(Variable incoming, Declaration decl, Compilation comp)

getConstructor

public Procedure getConstructor()

getImplementationType

public Type getImplementationType()