Uses of Interface
org.tquadrat.foundation.javacomposer.CodeBlock.Builder
Packages that use CodeBlock.Builder
Package
Description
JavaComposer is a Java toolkit for the generation of Java source
code.
The implementations for the interfaces from the package
org.tquadrat.foundation.javacomposer.-
Uses of CodeBlock.Builder in org.tquadrat.foundation.javacomposer
Methods in org.tquadrat.foundation.javacomposer that return CodeBlock.BuilderModifier and TypeMethodDescriptionAdds code with positional or relative arguments.Adds aCodeBlockinstance.Adds code using named arguments.CodeBlock.Builder.addStatement(String format, Object... args) Adds a statement.CodeBlock.Builder.addStaticImport(Class<?> clazz, String... names) Adds a static import.CodeBlock.Builder.addStaticImport(Enum<?> constant) Adds a static import for the givenenumvalue.CodeBlock.Builder.addStaticImport(ClassName className, String... names) Adds a static import.CodeBlock.Builder.beginControlFlow(String controlFlow, Object... args) Starts a control flow construct.final CodeBlock.BuilderJavaComposer.codeBlockBuilder()Creates a builder for an instance ofCodeBlock.CodeBlock.Builder.endControlFlow()Ends a control flow construct that was previously begun with a call tobeginControlFlow(String, Object...).CodeBlock.Builder.endControlFlow(String controlFlow, Object... args) Ends a control flow construct that was previously started with a call tobeginControlFlow(String,Object...)orbeginControlFlow(String,Object...).CodeBlock.Builder.indent()Adds an indentation level to the code block.CodeBlock.Builder.nextControlFlow(String controlFlow, Object... args) Adds another control flow construct to an already existing one.CodeBlock.toBuilder()Creates a new builder that is initialised with the components of this code block.CodeBlock.Builder.unindent()Removes an indentation level from the code block. -
Uses of CodeBlock.Builder in org.tquadrat.foundation.javacomposer.internal
Classes in org.tquadrat.foundation.javacomposer.internal that implement CodeBlock.BuilderModifier and TypeClassDescriptionstatic final classThe implementation ofCodeBlock.Builderas the builder for a newCodeBlockImplinstance.
