Package io.micronaut.sourcegen.javapoet
Class TypeSpec
java.lang.Object
io.micronaut.sourcegen.javapoet.TypeSpec
A generated class, interface, or enum declaration.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal List<AnnotationSpec>
final CodeBlock
final MethodSpec
final CodeBlock
final CodeBlock
final TypeSpec.Kind
final List<MethodSpec>
final String
final List<ParameterSpec>
final CodeBlock
final TypeName
final List<TypeVariableName>
final boolean
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeSpec.Builder
annotationBuilder
(ClassName className) static TypeSpec.Builder
annotationBuilder
(String name) static TypeSpec.Builder
anonymousClassBuilder
(CodeBlock typeArguments) static TypeSpec.Builder
anonymousClassBuilder
(String typeArgumentsFormat, Object... args) static TypeSpec.Builder
classBuilder
(ClassName className) static TypeSpec.Builder
classBuilder
(String name) static TypeSpec.Builder
enumBuilder
(ClassName className) static TypeSpec.Builder
enumBuilder
(String name) boolean
int
hashCode()
boolean
hasModifier
(Modifier modifier) static TypeSpec.Builder
interfaceBuilder
(ClassName className) static TypeSpec.Builder
interfaceBuilder
(String name) static TypeSpec.Builder
recordBuilder
(ClassName className) static TypeSpec.Builder
recordBuilder
(String name) toString()
-
Field Details
-
kind
-
name
-
anonymousTypeArguments
-
javadoc
-
annotations
-
modifiers
-
typeVariables
-
superclass
-
superinterfaces
-
recordComponents
-
varargs
public final boolean varargs -
permittedSubclasses
-
enumConstants
-
fieldSpecs
-
staticBlock
-
initializerBlock
-
compactConstructor
-
methodSpecs
-
typeSpecs
-
originatingElements
-
alwaysQualifiedNames
-
-
Method Details
-
hasModifier
-
classBuilder
-
classBuilder
-
interfaceBuilder
-
interfaceBuilder
-
enumBuilder
-
enumBuilder
-
recordBuilder
-
recordBuilder
-
anonymousClassBuilder
-
anonymousClassBuilder
-
annotationBuilder
-
annotationBuilder
-
toBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-