Esempio n. 1
0
 public FeedQueryGenerator(JCodeModel model, JPackage pkg) {
   this.model = model;
   this.pkg = pkg;
   this.parent = model.directClass(BaseApiQuery.class.getCanonicalName());
   this.precs = model.directClass(Preconditions.class.getCanonicalName());
   this.immutableList = model.directClass(ImmutableList.class.getCanonicalName());
   this.immutableMap = model.directClass(ImmutableMap.class.getCanonicalName());
   this.immutableMapBldr =
       model
           .directClass(ImmutableMap.Builder.class.getCanonicalName())
           .narrow(String.class, Object.class);
 }
Esempio n. 2
0
 private JType iterable(JClass mapType) {
   return model.directClass("Iterable").narrow(mapType);
 }