public static IsDeleted getInstance(ClassEnhancer enhancer) { return new IsDeleted( enhancer, enhancer.getNamer().getIsDeletedMethodName(), Opcodes.ACC_PUBLIC | Opcodes.ACC_FINAL, boolean.class, null, null); }
public static JdoNewObjectIdInstance1 getInstance(ClassEnhancer enhancer) { return new JdoNewObjectIdInstance1( enhancer, enhancer.getNamer().getNewObjectIdInstanceMethodName(), Opcodes.ACC_PUBLIC /* | Opcodes.ACC_FINAL*/, Object.class, null, null); }
/** * Constructor. * * @param enhancer ClassEnhancer * @param fmd MetaData for the field we are generating for */ public JdoSetViaCheck(ClassEnhancer enhancer, AbstractMemberMetaData fmd) { super( enhancer, enhancer.getNamer().getSetMethodPrefixMethodName() + fmd.getName(), (fmd.isPublic() ? Opcodes.ACC_PUBLIC : 0) | (fmd.isProtected() ? Opcodes.ACC_PROTECTED : 0) | (fmd.isPrivate() ? Opcodes.ACC_PRIVATE : 0) | Opcodes.ACC_STATIC, null, null, null); // Set the arg types/names argTypes = new Class[] {getClassEnhancer().getClassBeingEnhanced(), fmd.getType()}; argNames = new String[] {"objPC", "val"}; this.fmd = fmd; }