new ClassSourceFileComposerFactory(type.getPackageNome(), type.getSimpleSourceName()); factory.setSuperclass(AbstractAutoBean.class.getCanonicalName() + "<" + type.getPeerType().getQualifiedSourceName() + ">"); SourceWriter sw = factory.createSourceWriter(context, pw); AutoBeanFactory.class.getCanonicalName(), type.getPeerType().getQualifiedSourceName()); sw.indentln("super(wrapped, factory);"); sw.println("}"); sw.println("public %s as() {return shim;}", type.getPeerType().getQualifiedSourceName()); type.getPeerType()).getQualifiedSourceName());
new ClassSourceFileComposerFactory(type.getPackageNome(), type.getSimpleSourceName()); factory.setSuperclass(AbstractAutoBean.class.getCanonicalName() + "<" + type.getPeerType().getQualifiedSourceName() + ">"); SourceWriter sw = factory.createSourceWriter(context, pw); AutoBeanFactory.class.getCanonicalName(), type.getPeerType().getQualifiedSourceName()); sw.indentln("super(wrapped, factory);"); sw.println("}"); sw.println("public %s as() {return shim;}", type.getPeerType().getQualifiedSourceName()); type.getPeerType()).getQualifiedSourceName());
JClassType peer = type.getPeerType(); String peerName = ModelUtils.ensureBaseType(peer).getQualifiedSourceName(); if (peer.isPublic()) { .getJNISignature(); for (AutoBeanType type : model.getAllTypes()) { String peerName = ModelUtils.ensureBaseType(type.getPeerType()).getQualifiedSourceName(); String peerJNIName = ModelUtils.ensureBaseType(type.getPeerType()).getJNISignature();
JClassType peer = type.getPeerType(); String peerName = ModelUtils.ensureBaseType(peer).getQualifiedSourceName(); if (peer.isPublic()) { .getJNISignature(); for (AutoBeanType type : model.getAllTypes()) { String peerName = ModelUtils.ensureBaseType(type.getPeerType()).getQualifiedSourceName(); String peerJNIName = ModelUtils.ensureBaseType(type.getPeerType()).getJNISignature();
sw.println("%s propertyContext;", ClientPropertyContext.class.getCanonicalName()); sw.println("%1$s as = as();", type.getPeerType().getQualifiedSourceName());
sw.println("%s propertyContext;", ClientPropertyContext.class.getCanonicalName()); sw.println("%1$s as = as();", type.getPeerType().getQualifiedSourceName());
sw.println("private final %1$s shim = new %1$s() {", type.getPeerType() .getQualifiedSourceName()); sw.indent();
sw.println("private final %1$s shim = new %1$s() {", type.getPeerType() .getQualifiedSourceName()); sw.indent();
sw.println("@Override protected %s createSimplePeer() {", type.getPeerType() .getQualifiedSourceName()); sw.indent(); sw.println("return new %s() {", type.getPeerType().getQualifiedSourceName()); sw.indent(); sw.println("private final %s data = %s.this.data;", Splittable.class.getCanonicalName(), type
sw.println("@Override protected %s createSimplePeer() {", type.getPeerType() .getQualifiedSourceName()); sw.indent(); sw.println("return new %s() {", type.getPeerType().getQualifiedSourceName()); sw.indent(); sw.println("private final %s data = %s.this.data;", Splittable.class.getCanonicalName(), type