Class TypeSpec.Builder
java.lang.Object
com.squareup.javapoet.TypeSpec.Builder
- Enclosing class:
TypeSpec
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<AnnotationSpec> private final CodeBlockprivate final CodeBlock.Builderprivate final CodeBlock.Builderprivate final TypeSpec.Kindprivate final List<MethodSpec> private final Stringprivate final CodeBlock.Builderprivate TypeNameprivate final List<TypeVariableName> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuilder(TypeSpec.Kind kind, String name, CodeBlock anonymousTypeArguments) -
Method Summary
Modifier and TypeMethodDescriptionaddAnnotation(AnnotationSpec annotationSpec) addAnnotation(ClassName annotation) addAnnotation(Class<?> annotation) addAnnotations(Iterable<AnnotationSpec> annotationSpecs) addEnumConstant(String name) addEnumConstant(String name, TypeSpec typeSpec) addInitializerBlock(CodeBlock block) addJavadoc(String format, Object... args) addMethod(MethodSpec methodSpec) addMethods(Iterable<MethodSpec> methodSpecs) addModifiers(Modifier... modifiers) addOriginatingElement(Element originatingElement) addStaticBlock(CodeBlock block) addSuperinterface(TypeName superinterface) addSuperinterface(Type superinterface) addSuperinterfaces(Iterable<? extends TypeName> superinterfaces) addTypeVariable(TypeVariableName typeVariable) addTypeVariables(Iterable<TypeVariableName> typeVariables) build()superclass(TypeName superclass) superclass(Type superclass)
-
Field Details
-
kind
-
name
-
anonymousTypeArguments
-
javadoc
-
annotations
-
modifiers
-
typeVariables
-
superclass
-
superinterfaces
-
enumConstants
-
fieldSpecs
-
staticBlock
-
initializerBlock
-
methodSpecs
-
typeSpecs
-
originatingElements
-
-
Constructor Details
-
Builder
-
-
Method Details
-
addJavadoc
-
addAnnotations
-
addAnnotation
-
addAnnotation
-
addAnnotation
-
addModifiers
-
addTypeVariables
-
addTypeVariable
-
superclass
-
superclass
-
addSuperinterfaces
-
addSuperinterface
-
addSuperinterface
-
addEnumConstant
-
addEnumConstant
-
addFields
-
addField
-
addField
-
addField
-
addStaticBlock
-
addInitializerBlock
-
addMethods
-
addMethod
-
addTypes
-
addType
-
addOriginatingElement
-
build
-