gnu.kawa.reflect

Class InstanceOf

public class InstanceOf extends Procedure2 implements CanInline, Inlineable

Field Summary
protected Languagelanguage
Constructor Summary
InstanceOf(Language language)
InstanceOf(Language language, String name)
Method Summary
Objectapply2(Object arg1, Object arg2)
voidcompile(ApplyExp exp, Compilation comp, Target target)
static voidemitIsInstance(TypeValue type, Variable incoming, Compilation comp, Target target)
TypegetReturnType(Expression[] args)
Expressioninline(ApplyExp exp, ExpWalker walker)

Field Detail

language

protected Language language

Constructor Detail

InstanceOf

public InstanceOf(Language language)

InstanceOf

public InstanceOf(Language language, String name)

Method Detail

apply2

public Object apply2(Object arg1, Object arg2)

compile

public void compile(ApplyExp exp, Compilation comp, Target target)

emitIsInstance

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

getReturnType

public Type getReturnType(Expression[] args)

inline

public Expression inline(ApplyExp exp, ExpWalker walker)