gnu.kawa.reflect
Class SlotSet

java.lang.Object
  extended by gnu.mapping.PropertySet
      extended by gnu.mapping.Procedure
          extended by gnu.mapping.Procedure3
              extended by gnu.kawa.reflect.SlotSet
All 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(java.lang.String name, boolean isStatic)
           
 
Method Summary
static void apply(boolean isStatic, java.lang.Object obj, java.lang.String name, java.lang.Object value)
           
 java.lang.Object apply3(java.lang.Object obj, java.lang.Object fname, java.lang.Object value)
           
 void compile(ApplyExp exp, Compilation comp, Target target)
           
 Type getReturnType(Expression[] args)
           
 Expression inline(ApplyExp exp, ExpWalker walker)
          Inline an application of this Procedure and return result.
static Member lookupMember(ClassType clas, java.lang.String name, ClassType caller)
           
static void setField(java.lang.Object obj, java.lang.String name, java.lang.Object value)
           
static void setStaticField(java.lang.Object obj, java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class gnu.mapping.Procedure3
apply0, apply1, apply2, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, apply, check0, check1, check2, check3, check4, checkArgCount, checkN, getSetter, getSourceLocation, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, set0, set1, setN, setSetter, setSourceLocation, toString
 
Methods inherited from class gnu.mapping.PropertySet
getName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbol
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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 Detail

SlotSet

public SlotSet(java.lang.String name,
               boolean isStatic)
Method Detail

setField

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

setStaticField

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

apply

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

apply3

public java.lang.Object apply3(java.lang.Object obj,
                               java.lang.Object fname,
                               java.lang.Object value)
Specified by:
apply3 in class Procedure3

lookupMember

public static Member lookupMember(ClassType clas,
                                  java.lang.String name,
                                  ClassType caller)

inline

public Expression inline(ApplyExp exp,
                         ExpWalker walker)
Description copied from interface: CanInline
Inline an application of this Procedure and return result. Can return original expression.

Specified by:
inline in interface CanInline

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