Uses of Class
io.spring.initializr.generator.language.CodeBlock
Packages that use CodeBlock
Package
Description
Language abstraction.
Groovy language.
Java language.
Kotlin language.
-
Uses of CodeBlock in io.spring.initializr.generator.language
Methods in io.spring.initializr.generator.language that return CodeBlockModifier and TypeMethodDescriptionReturn the code that represents an array for the specified values.CodeBlock.Builder.build()
Build aCodeBlock
with the current state of this builder.CodeBlock.FormattingOptions.classReference
(ClassName className) Return the code that represents a reference to the specifiedClassName
.static CodeBlock
static CodeBlock
Create a code block using the specified code and optional arguments.static CodeBlock
CodeBlock.ofStatement
(String format, Object... args) Create a code block with a single statement using the specified code and optional arguments.Methods in io.spring.initializr.generator.language that return types with arguments of type CodeBlockModifier and TypeMethodDescriptionMethods in io.spring.initializr.generator.language with parameters of type CodeBlockModifier and TypeMethodDescriptionAdd the specifiedCodeBlock
, without any extra line or statement separator.CodeBlock.Builder.addStatement
(CodeBlock codeBlock) Add the specifiedCodeBlock
as a statement.Return the code that represents an array for the specified values.Method parameters in io.spring.initializr.generator.language with type arguments of type CodeBlock -
Uses of CodeBlock in io.spring.initializr.generator.language.groovy
Methods in io.spring.initializr.generator.language.groovy with parameters of type CodeBlockModifier and TypeMethodDescription -
Uses of CodeBlock in io.spring.initializr.generator.language.java
Methods in io.spring.initializr.generator.language.java with parameters of type CodeBlockModifier and TypeMethodDescription -
Uses of CodeBlock in io.spring.initializr.generator.language.kotlin
Methods in io.spring.initializr.generator.language.kotlin with parameters of type CodeBlockModifier and TypeMethodDescription