gnu.kawa.reflect

Class SlotSet

Implemented Interfaces:
CanInline, Inlineable, Named

public class SlotSet
extends Procedure3
implements CanInline, Inlineable

Field Summary

static SlotSet
set$Mnfield$Ex
static SlotSet
set$Mnstatic$Mnfield$Ex
static SlotSet
setFieldReturnObject

Constructor Summary

SlotSet(String name, boolean isStatic)

Method Summary

static void
apply(boolean isStatic, Object obj, String name, Object value)
Object
apply3(Object obj, Object fname, Object value)
void
compile(ApplyExp exp, Compilation comp, Target target)
Type
getReturnType(Expression[] args)
Expression
inline(ApplyExp exp, ExpWalker walker)
static void
setField(Object obj, String name, Object value)
static void
setStaticField(Object obj, String name, Object value)

Methods inherited from class gnu.mapping.Procedure3

apply0, apply1, apply2, apply3, apply4, applyN, numArgs

Methods inherited from class gnu.mapping.Procedure

apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString

Field Details

set$Mnfield$Ex

public static final SlotSet set$Mnfield$Ex

set$Mnstatic$Mnfield$Ex

public static final SlotSet set$Mnstatic$Mnfield$Ex

setFieldReturnObject

public static final SlotSet setFieldReturnObject

Constructor Details

SlotSet

public SlotSet(String name,
               boolean isStatic)

Method Details

apply

public static void apply(boolean isStatic,
                         Object obj,
                         String name,
                         Object value)

apply3

public Object apply3(Object obj,
                     Object fname,
                     Object value)
Overrides:
apply3 in interface Procedure3

compile

public void compile(ApplyExp exp,
                    Compilation comp,
                    Target target)
Specified by:
compile in interface Inlineable

getReturnType

public Type getReturnType(Expression[] args)
Specified by:
getReturnType in interface Inlineable

inline

public Expression inline(ApplyExp exp,
                         ExpWalker walker)
Specified by:
inline in interface CanInline

setField

public static void setField(Object obj,
                            String name,
                            Object value)

setStaticField

public static void setStaticField(Object obj,
                                  String name,
                                  Object value)