Searched refs:typeBuilder (Results 1 – 4 of 4) sorted by relevance
34 public static TypeSpec.Builder addSupertype(TypeSpec.Builder typeBuilder, TypeElement supertype) { in addSupertype() argument37 return typeBuilder.superclass(ClassName.get(supertype)); in addSupertype()39 return typeBuilder.addSuperinterface(ClassName.get(supertype)); in addSupertype()
161 TypeSpec.Builder typeBuilder = TypeSpec.classBuilder(IsAnnotated.class.getSimpleName()); in defaultAnnotationWithImport() local162 typeBuilder.addAnnotation(annotation); in defaultAnnotationWithImport()163 JavaFile file = JavaFile.builder("com.squareup.javapoet", typeBuilder.build()).build(); in defaultAnnotationWithImport()
256 TypeSpec.Builder typeBuilder, in addFieldAndConstructorParameter() argument261 typeBuilder.addField(field); in addFieldAndConstructorParameter()
1140 if (Optional<StringRef> typeBuilder = attr->getTypeBuilder()) { in genElementParser() local1142 os << ", " << tgfmt(*typeBuilder, &attrTypeCtx); in genElementParser()