Class SetViaCheck


  • public class SetViaCheck
    extends ClassMethod
    Method to generate the method "setZZZ" using ASM for CHECK_WRITE fields.
     static void dnSetZZZ(MyClass objPC, YYY zzz)
     {
         if (objPC.dnFlags != 0 && objPC.dnStateManager != null)
             objPC.dnStateManager.setStringField(objPC, 2, objPC.ZZZ, zzz);
         else
         {
             objPC.ZZZ = zzz;
             if (objPC.dnIsDetached() == true)
                 ((BitSet) objPC.dnDetachedState[3]).set(2);
         }
     }
     
    with the last part only applying when Detachable
    • Constructor Detail

      • SetViaCheck

        public SetViaCheck​(ClassEnhancer enhancer,
                           AbstractMemberMetaData fmd)
        Constructor.
        Parameters:
        enhancer - ClassEnhancer
        fmd - MetaData for the field we are generating for
    • Method Detail

      • execute

        public void execute()
        Method to add the contents of the class method.
        Specified by:
        execute in class ClassMethod