Class SlotSet

    • Field Detail

      • setField

        public static final SlotSet setField
      • setStaticField

        public static final SlotSet setStaticField
    • 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.Object member,
                                 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​(ObjectType clas,
                                          java.lang.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.