Class SlotSet

All Implemented Interfaces:
Inlineable, Named

public class SlotSet extends Procedure3 implements Inlineable
  • Field Details

    • setField

      public static final SlotSet setField
    • setStaticField

      public static final SlotSet setStaticField
  • Constructor Details

    • SlotSet

      public SlotSet(String name, boolean isStatic)
  • Method Details

    • setField

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

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

      public static void apply(boolean isStatic, Object obj, Object member, Object value)
    • apply3

      public Object apply3(Object obj, Object fname, Object value)
      Specified by:
      apply3 in class Procedure3
    • lookupMember

      public static Member lookupMember(ObjectType clas, String name, ClassType caller)
      Get a setter property - field or 'set' accessor method.
      Parameters:
      clas - the class type declaring the property.
      name - the source (unmangled) name of the property. Note if a method is returned it may not be the most specific/appropriate, since we don't take the setter value into account here. Therefore it is best to just use the method name, and do a second lookup that takes arguments into account, as in CompileReflect#makeSetterCall.
    • compile

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