Uses of Interface
org.tquadrat.foundation.javacomposer.CodeBlock
Packages that use CodeBlock
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 in org.tquadrat.foundation.javacomposer
Fields in org.tquadrat.foundation.javacomposer with type parameters of type CodeBlockModifier and TypeFieldDescriptionJavaComposer.m_JavaDoc_InheritDocThe Javadoc comment for an overriding method.Methods in org.tquadrat.foundation.javacomposer that return CodeBlockModifier and TypeMethodDescriptionCodeBlock.Builder.build()Creates theCodeBlockfrom the added components.final CodeBlockJavaComposer.codeBlockOf(String format, Object... args) Creates a newCodeBlockinstance from the given format and arguments.private final CodeBlockJavaComposer.createComment4Constant(CodeBlock comment) Creates the comment for a constant.final CodeBlockJavaComposer.createInheritDocComment()Returns a code block with a comment for overriding methods:final CodeBlockJavaComposer.createReturnStatement()Creates a return statement with a comment, usingretValueas the name for the return variable.final CodeBlockJavaComposer.createReturnStatement(CharSequence name) Creates a return statement with a comment.static final CodeBlockSuppressableWarnings.createSuppressWarningsCommentForIDEA(JavaComposer factory, SuppressableWarnings... suppress) Creates a comment (for IntelliJ IDEA) that suppresses the given warnings.final CodeBlockJavaComposer.emptyCodeBlock()Returns an emptyCodeBlock.Joins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.Joins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.CodeProcessor.process(StringTemplatePREVIEW template) final CodeBlockJavaComposer.statementOf(String format, Object... args) Creates a newCodeBlockinstance from the given format and arguments, usingCodeBlock.Builder.addStatement(String, Object...).Methods in org.tquadrat.foundation.javacomposer with parameters of type CodeBlockModifier and TypeMethodDescriptionAdds aCodeBlockinstance.Adds code for the lambda body.Adds code for the method.TypeSpec.Builder.addEnumConstant(CharSequence name, CodeBlock javaDoc) Adds anenumconstant for the type to build.TypeSpec.Builder.addInitializerBlock(CodeBlock block) Adds code to the initializer block.FieldSpec.Builder.addJavadoc(CodeBlock block) Adds a Javadoc comment for the field.MethodSpec.Builder.addJavadoc(CodeBlock block) Adds a Javadoc comment for the method.ParameterSpec.Builder.addJavadoc(CodeBlock block) Adds text to the JavaDoc for the parameter.TypeSpec.Builder.addJavadoc(CodeBlock block) Adds text to the Javadoc for the type.AnnotationSpec.Builder.addMember(CharSequence name, CodeBlock codeBlock) Adds a building block.TypeSpec.Builder.addStaticBlock(CodeBlock block) Adds a static block for the type.final TypeSpec.BuilderJavaComposer.anonymousClassBuilder(CodeBlock typeArguments) Creates a builder for an anonymous class.private final CodeBlockJavaComposer.createComment4Constant(CodeBlock comment) Creates the comment for a constant.final FieldSpecJavaComposer.createConstant(CharSequence name, int value, CodeBlock comment) Creates an integer constant.final FieldSpecJavaComposer.createConstant(CharSequence name, Type type, CodeBlock value, CodeBlock comment) Creates a constant.final FieldSpecJavaComposer.createConstant(CharSequence name, String value, CodeBlock comment) Creates a String constant.private final FieldSpecJavaComposer.createConstant(CharSequence name, TypeName type, Number value, CodeBlock comment) Creates a numerical constant.final FieldSpecJavaComposer.createConstant(CharSequence name, TypeName type, CodeBlock value, CodeBlock comment) Creates a constant.
A constant is an initialisedpublic final staticfield.final MethodSpecJavaComposer.createEqualsMethod(CodeBlock body) Returns aMethodSpecinstance for an implementation of the methodObject.equals(Object).final MethodSpecJavaComposer.createHashCodeMethod(CodeBlock body) Returns aMethodSpecinstance for an implementation of the methodObject.hashCode().final MethodSpecJavaComposer.createToStringMethod(CodeBlock body) Returns aMethodSpecinstance for an implementation of the methodObject.toString().MethodSpec.Builder.defaultValue(CodeBlock defaultValue) Sets the default value for this method.FieldSpec.Builder.initializer(CodeBlock codeBlock) Sets the initializer for the field.Joins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.Joins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator. -
Uses of CodeBlock in org.tquadrat.foundation.javacomposer.internal
Classes in org.tquadrat.foundation.javacomposer.internal that implement CodeBlockModifier and TypeClassDescriptionfinal classThe implementation ofCodeBlockfor a fragment of a*.javafile.Methods in org.tquadrat.foundation.javacomposer.internal that return CodeBlockModifier and TypeMethodDescriptionfinal CodeBlockJoins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.final CodeBlockJoins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.CodeProcessorImpl.process(StringTemplatePREVIEW template) Methods in org.tquadrat.foundation.javacomposer.internal that return types with arguments of type CodeBlockModifier and TypeMethodDescriptionClassSpecImpl.anonymousTypeArguments()Returns the anonymous type arguments.TypeSpecImpl.anonymousTypeArguments()Returns the anonymous type arguments.ParameterSpecImpl.javadoc()Returns the Javadoc comment for this parameter.Methods in org.tquadrat.foundation.javacomposer.internal with parameters of type CodeBlockModifier and TypeMethodDescriptionAdds aCodeBlockinstance.Adds code for the lambda body.Adds code for the method.final TypeSpecImpl.BuilderImplTypeSpecImpl.BuilderImpl.addEnumConstant(CharSequence name, CodeBlock javaDoc) Adds anenumconstant for the type to build.AnnotationTypeSpecImpl.BuilderImpl.addInitializerBlock(CodeBlock block) Adds code to the initializer block.InterfaceSpecImpl.BuilderImpl.addInitializerBlock(CodeBlock block) Adds code to the initializer block.TypeSpecImpl.BuilderImpl.addInitializerBlock(CodeBlock block) Adds code to the initializer block.FieldSpecImpl.BuilderImpl.addJavadoc(CodeBlock block) Adds a Javadoc comment for the field.MethodSpecImpl.BuilderImpl.addJavadoc(CodeBlock block) Adds a Javadoc comment for the method.ParameterSpecImpl.BuilderImpl.addJavadoc(CodeBlock block) Adds text to the JavaDoc for the parameter.final TypeSpecImpl.BuilderImplTypeSpecImpl.BuilderImpl.addJavadoc(CodeBlock block) Adds text to the Javadoc for the type.AnnotationSpecImpl.BuilderImpl.addMember(CharSequence name, CodeBlock codeBlock) Adds a building block.AnnotationTypeSpecImpl.BuilderImpl.addStaticBlock(CodeBlock block) Adds a static block for the type.TypeSpecImpl.BuilderImpl.addStaticBlock(CodeBlock block) Adds a static block for the type.CodeBlockImpl.BuilderImpl.addWithoutDebugInfo(CodeBlock codeBlock) Adds aCodeBlockinstance without prepending any debug output.MethodSpecImpl.BuilderImpl.defaultValue(CodeBlock defaultValue) Sets the default value for this method.FieldSpecImpl.BuilderImpl.initializer(CodeBlock codeBlock) Sets the initializer for the field.final CodeBlockJoins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.final CodeBlockJoins this code block with the given code blocks into a single newCodeBlockinstance, each separated by the given separator.private static final Stream<CodeBlockImpl> CodeBlockImpl.makeCodeBlockStream(CodeBlock head, CodeBlock... tail) Composes a stream from the givenCodeBlockinstances.
