Class SlotSet

    • Field Detail

      • setField

        public static final SlotSet setField
      • setStaticField

        public static final SlotSet setStaticField
    • Constructor Detail

      • SlotSet

        public SlotSet​(String name,
                       boolean isStatic)
    • Method Detail

      • setStaticField

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

        public static void apply​(boolean isStatic,
                                 Object obj,
                                 Object member,
                                 Object value)
      • 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.