public MethodWriter createMethodWriter() { return _parent.getModel().strategy.createMethodWriter(this); }
protected AbstractField( ClassOutlineImpl outline, CPropertyInfo prop ) { this.outline = outline; this.prop = prop; this.codeModel = outline.parent().getCodeModel(); this.implType = getType(IMPLEMENTATION); this.exposedType = getType(Aspect.EXPOSED); }
DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage) { this.publicOFG = new PublicObjectFactoryGenerator(outline,model,targetPackage); this.privateOFG = new PrivateObjectFactoryGenerator(outline,model,targetPackage); // put the marker so that we can detect missing jaxb.properties publicOFG.getObjectFactory().field(JMod.PRIVATE|JMod.STATIC|JMod.FINAL, Void.class, "_useJAXBProperties", JExpr._null()); }
protected AbstractField( ClassOutlineImpl outline, CPropertyInfo prop ) { this.outline = outline; this.prop = prop; this.codeModel = outline.parent().getCodeModel(); this.implType = getType(IMPLEMENTATION); this.exposedType = getType(Aspect.EXPOSED); }
/** * Returns the private version (which is what gets used at runtime.) */ public JDefinedClass getObjectFactory() { return privateOFG.getObjectFactory(); } }
protected AbstractField( ClassOutlineImpl outline, CPropertyInfo prop ) { this.outline = outline; this.prop = prop; this.codeModel = outline.parent().getCodeModel(); this.implType = getType(IMPLEMENTATION); this.exposedType = getType(Aspect.EXPOSED); }
public MethodWriter createMethodWriter() { return _parent.getModel().strategy.createMethodWriter(this); }
DualObjectFactoryGenerator(BeanGenerator outline, Model model, JPackage targetPackage) { this.publicOFG = new PublicObjectFactoryGenerator(outline,model,targetPackage); this.privateOFG = new PrivateObjectFactoryGenerator(outline,model,targetPackage); // put the marker so that we can detect missing jaxb.properties publicOFG.getObjectFactory().field(JMod.PRIVATE|JMod.STATIC|JMod.FINAL, Void.class, ContextFactory.USE_JAXB_PROPERTIES, JExpr._null()); }
/** * Returns the private version (which is what gets used at runtime.) */ public JDefinedClass getObjectFactory() { return privateOFG.getObjectFactory(); } }
protected AbstractField( ClassOutlineImpl outline, CPropertyInfo prop ) { this.outline = outline; this.prop = prop; this.codeModel = outline.parent().getCodeModel(); this.implType = getType(IMPLEMENTATION); this.exposedType = getType(Aspect.EXPOSED); }
public MethodWriter createMethodWriter() { return _parent.getModel().strategy.createMethodWriter(this); }
public MethodWriter createMethodWriter() { return _parent.getModel().strategy.createMethodWriter(this); }
public MethodWriter createMethodWriter() { return _parent.getModel().strategy.createMethodWriter(this); }