public void addAssocBeanExtras ( ClassVisitor cv ) { if ( isLog ( 3 ) ) { String msg = "... add fields" ; if ( ! hasBasicConstructor ) { msg += ", basic constructor" ; } if ( ! hasMainConstructor ) { msg += ", main constructor" ; } log ( msg ) ; } if ( ! hasBasicConstructor ) { // add the assoc bean basic constructor new TypeQueryAssocBasicConstructor ( this , cv , ASSOC_BEAN_BASIC_CONSTRUCTOR_DESC , ASSOC_BEAN_BASIC_SIG ) . visitCode ( ) ; } if ( ! hasMainConstructor ) { // add the assoc bean main constructor new TypeQueryAssocMainConstructor ( this , cv , ASSOC_BEAN_MAIN_CONSTRUCTOR_DESC , ASSOC_BEAN_MAIN_SIG ) . visitCode ( ) ; } }
Add fields and constructors to assoc type query beans as necessary .