Uses of Class
io.spring.initializr.generator.language.ClassName
Packages that use ClassName
Package
Description
Language abstraction.
Kotlin language.
-
Uses of ClassName in io.spring.initializr.generator.language
Methods in io.spring.initializr.generator.language that return ClassNameModifier and TypeMethodDescriptionAnnotation.getClassName()
Return theClassName
of the annotation.ClassName.getEnclosingType()
Return the enclosing class name, ornull
if this instance does not have an enclosing type.static ClassName
static ClassName
Create aClassName
based on the specified fully qualified name.Methods in io.spring.initializr.generator.language with parameters of type ClassNameModifier and TypeMethodDescriptionvoid
Add a singleAnnotation
with the specified class name.void
AnnotationContainer.add
(ClassName className, Consumer<Annotation.Builder> annotation) Add a singleAnnotation
with the specified class name andConsumer
to customize it.Annotate the parameter with the specified annotation.Parameter.Builder.annotate
(ClassName className, Consumer<Annotation.Builder> annotation) Annotate the parameter with the specified annotation, customized by the specified consumer.CodeBlock.FormattingOptions.classReference
(ClassName className) Return the code that represents a reference to the specifiedClassName
.boolean
Specify if this container has a an annotation with the specifiedClassName
.static Annotation.Builder
Initialize an annotationAnnotation.Builder
for the specified class name.static Parameter
Create a parameter with the specified name andtype
.boolean
Remove the annotation with the specifiedClassName
.Specify thetype
of the parameter. -
Uses of ClassName in io.spring.initializr.generator.language.kotlin
Methods in io.spring.initializr.generator.language.kotlin with parameters of type ClassNameModifier and TypeMethodDescriptionKotlinPropertyDeclaration.AccessorBuilder.withAnnotation
(ClassName className) KotlinPropertyDeclaration.AccessorBuilder.withAnnotation
(ClassName className, Consumer<Annotation.Builder> annotation)