gnu.kawa.reflect

Class SingletonType

public class SingletonType extends ObjectType

Constructor Summary
SingletonType(String name)
Method Summary
ObjectcoerceFromObject(Object obj)
static ObjectcoerceToSingleton(Object obj)
intcompare(Type other)
voidemitCoerceFromObject(CodeAttr code)
TypegetImplementationType()
static SingletonTypegetInstance()
ClassgetReflectClass()
booleanisInstance(Object obj)

Constructor Detail

SingletonType

public SingletonType(String name)

Method Detail

coerceFromObject

public Object coerceFromObject(Object obj)

coerceToSingleton

public static Object coerceToSingleton(Object obj)

compare

public int compare(Type other)

emitCoerceFromObject

public void emitCoerceFromObject(CodeAttr code)

getImplementationType

public Type getImplementationType()

getInstance

public static final SingletonType getInstance()

getReflectClass

public Class getReflectClass()

isInstance

public boolean isInstance(Object obj)