java.lang.Object
io.helidon.codegen.classmodel.Executable.Builder<Method.Builder,Method>
 
io.helidon.codegen.classmodel.Method.Builder
- All Implemented Interfaces:
- ContentBuilder<Method.Builder>,- Builder<Method.Builder,,- Method> - Supplier<Method>
- Enclosing class:
- Method
Fluent API builder for 
Method.- 
Method SummaryModifier and TypeMethodDescriptionaddAnnotation(Annotation annotation) Add new annotation to the component.addAnnotation(Annotation.Builder builder) Add new annotation to the component.addAnnotation(Annotation annotation) Add new annotation to the component.addAnnotation(Consumer<Annotation.Builder> consumer) Add new annotation to the component.addDescriptionLine(String line) addGenericArgument(TypeArgument typeArgument) Add generic argument to be declared by this method.build()Build the instance from this builder.Set new content.description(String description) description(List<String> description) includeImport(boolean includeImport) Whether to include import type information among the imports.isAbstract(boolean isAbstract) Whether this method is abstract.isDefault(boolean isDefault) Whether this method is default.isFinal(boolean isFinal) Whether this method is final.isStatic(boolean isStatic) Whether this method is static.returnType(Returns returnType) Set return type of the method.returnType(TypeName type) Set return type of the method.returnType(TypeName type, String description) Set return type of the method.returnType(Consumer<Returns.Builder> consumer) Set return type of the method.returnType(Supplier<Returns> supplier) Set return type of the method.Methods inherited from class io.helidon.codegen.classmodel.Executable.BuilderaccessModifier, addContent, addContent, addJavadocTag, addParameter, addParameter, addParameter, addThrows, addThrows, addThrows, addThrows, addTypeToContent, clearContent, decreaseContentPadding, generateJavadoc, increaseContentPadding, javadoc, padContent, padContentMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.codegen.classmodel.ContentBuilderaddContent, addContentCreate, addContentCreate, addContentCreate, addContentCreate, addContentLine, addContentLiteral, content
- 
Method Details- 
buildDescription copied from interface:BuilderBuild the instance from this builder.- Returns:
- instance of the built type
 
- 
contentDescription copied from interface:ContentBuilderSet new content. This method replaces previously created content in this builder.- Specified by:
- contentin interface- ContentBuilder<Method.Builder>
- Overrides:
- contentin class- Executable.Builder<Method.Builder,- Method> 
- Parameters:
- content- content to be set
- Returns:
- updated builder instance
 
- 
isFinalWhether this method is final.- Parameters:
- isFinal- method is final
- Returns:
- updated builder instance
 
- 
isStaticWhether this method is static.- Parameters:
- isStatic- method is static
- Returns:
- updated builder instance
 
- 
isAbstractWhether this method is abstract.- Parameters:
- isAbstract- method is abstract
- Returns:
- updated builder instance
 
- 
isDefaultWhether this method is default.- Parameters:
- isDefault- method is default
- Returns:
- updated builder instance
 
- 
returnTypeSet return type of the method. Default isvoid.- Parameters:
- type- return type
- Returns:
- updated builder instance
 
- 
returnTypeSet return type of the method. Default isvoid.- Parameters:
- type- return type
- description- return type description
- Returns:
- updated builder instance
 
- 
returnTypeSet return type of the method. Default isvoid.- Parameters:
- consumer- return type builder consumer
- Returns:
- updated builder instance
 
- 
returnTypeSet return type of the method. Default isvoid.- Parameters:
- supplier- return type supplier
- Returns:
- updated builder instance
 
- 
returnTypeSet return type of the method. Default isvoid.- Parameters:
- returnType- return type
- Returns:
- updated builder instance
 
- 
addGenericArgumentAdd generic argument to be declared by this method.- Parameters:
- typeArgument- argument to be declared
- Returns:
- updated builder instance
 
- 
description
- 
description
- 
addDescriptionLine
- 
addAnnotationAdd new annotation to the component.- Parameters:
- annotation- annotation instance
- Returns:
- updated builder instance
 
- 
addAnnotationAdd new annotation to the component.- Parameters:
- consumer- annotation builder consumer
- Returns:
- updated builder instance
 
- 
addAnnotationAdd new annotation to the component.- Parameters:
- builder- annotation builder
- Returns:
- updated builder instance
 
- 
addAnnotationAdd new annotation to the component.- Parameters:
- annotation- annotation instance
- Returns:
- updated builder instance
 
- 
name
- 
includeImportWhether to include import type information among the imports.- Parameters:
- includeImport- whether imports should be included
- Returns:
- updated builder instance
 
 
-