Uses of Interface
org.tquadrat.foundation.javacomposer.MethodSpec.Builder
Packages that use MethodSpec.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 MethodSpec.Builder in org.tquadrat.foundation.javacomposerMethods in org.tquadrat.foundation.javacomposer that return MethodSpec.BuilderModifier and TypeMethodDescriptionMethodSpec.Builder.addAnnotation(Class<?> annotation) Adds an annotation for the method.MethodSpec.Builder.addAnnotation(AnnotationSpec annotationSpec) Adds an annotation for the method.MethodSpec.Builder.addAnnotation(ClassName annotationClass) Adds an annotation for the method.MethodSpec.Builder.addAnnotations(Iterable<? extends AnnotationSpec> annotationSpecs) Adds annotations for the method.Adds code for the method.Adds code for the method.MethodSpec.Builder.addComment(String format, Object... args) Adds a comment for the method.MethodSpec.Builder.addException(Type exception) Adds the declaration for an exception for the method.MethodSpec.Builder.addException(TypeName exception) Adds the declaration for an exception for the method.MethodSpec.Builder.addExceptions(Iterable<? extends TypeName> exceptions) Adds the declarations for exceptions for the method.MethodSpec.Builder.addJavadoc(String format, Object... args) Adds a Javadoc comment for the method.MethodSpec.Builder.addJavadoc(CodeBlock block) Adds a Javadoc comment for the method.MethodSpec.Builder.addModifiers(Iterable<Modifier> modifiers) Adds modifiers for the method.MethodSpec.Builder.addModifiers(Modifier... modifiers) Adds modifiers for the method.MethodSpec.Builder.addNamedCode(String format, Map<String, ?> args) Adds code using named arguments for the method.MethodSpec.Builder.addParameter(Type type, String name, Modifier... modifiers) Adds a parameter for the method.MethodSpec.Builder.addParameter(ParameterSpec parameterSpec) Adds a parameter for the method.MethodSpec.Builder.addParameter(TypeName type, String name, Modifier... modifiers) Adds a parameter for the method.MethodSpec.Builder.addParameters(Iterable<? extends ParameterSpec> parameterSpecs) Adds parameters for the method.MethodSpec.Builder.addStatement(String format, Object... args) Adds a statement to the code for the method.MethodSpec.Builder.addStaticImport(Class<?> clazz, String... names) Adds a static import.MethodSpec.Builder.addStaticImport(Enum<?> constant) Adds a static import for the givenenumvalue.MethodSpec.Builder.addStaticImport(ClassName className, String... names) Adds a static import.MethodSpec.Builder.addTypeVariable(TypeVariableName typeVariable) Adds a type variable for the method.MethodSpec.Builder.addTypeVariables(Iterable<TypeVariableName> typeVariables) Adds type variables for the method.MethodSpec.Builder.beginControlFlow(String controlFlow, Object... args) Adds the beginning of a control flow for the method.final MethodSpec.BuilderJavaComposer.constructorBuilder()Creates a builder that builds an instance ofMethodSpecfor a constructor.final MethodSpec.BuilderJavaComposer.createEqualsBuilder()Returns a builder for an implementation of the methodObject.equals(Object)that just needs the method body for completion.final MethodSpec.BuilderJavaComposer.createHashCodeBuilder()Returns a builder for an implementation of the methodObject.hashCode()that just needs the method body for completion.final MethodSpec.BuilderJavaComposer.createToStringBuilder()Returns a builder for an implementation of the methodObject.toString()that just needs the method body for completion.MethodSpec.Builder.defaultValue(String format, Object... args) Sets the default value for this method.MethodSpec.Builder.defaultValue(CodeBlock defaultValue) Sets the default value for this method.MethodSpec.Builder.endControlFlow()Ends the current control flow for the method.MethodSpec.Builder.endControlFlow(String controlFlow, Object... args) Ends the current control flow for the method; this version is only used fordo-whileconstructs.final MethodSpec.BuilderJavaComposer.methodBuilder(CharSequence name) Returns a builder for a regular method.MethodSpec.Builder.nextControlFlow(String controlFlow, Object... args) Begins another control flow for the method.final MethodSpec.BuilderJavaComposer.overridingMethodBuilder(Method method) Returns a new method builder for a method that overrides the given method.final MethodSpec.BuilderJavaComposer.overridingMethodBuilder(ExecutableElement method) Returns a new method builder for a method that overrides the given method.final MethodSpec.BuilderJavaComposer.overridingMethodBuilder(ExecutableElement method, DeclaredType enclosing, Types typeUtils) Returns a new method builder that overrides the given method as a member of of the given enclosing class.Sets the return type for the method.Sets the return type for the method and adds the respective Javadoc comment.Sets the return type for the method.Sets the return type for the method and adds the respective Javadoc comment.default MethodSpec.BuilderMethodSpec.toBuilder()Returns a builder that is initialised with all the components of this method.MethodSpec.toBuilder(boolean omitCode) Returns a builder that is initialised with all the components of this method, like the result of a call toMethodSpec.toBuilder(), but without the body code, if specified that way.default MethodSpec.BuilderMethodSpec.Builder.varargs()Sets the flag that indicates whether a parameter (the last one) is avarargsparameter totrue.MethodSpec.Builder.varargs(boolean varargs) Sets the flag that indicates whether a parameter (the last one) is avarargsparameter.
- 
Uses of MethodSpec.Builder in org.tquadrat.foundation.javacomposer.internalClasses in org.tquadrat.foundation.javacomposer.internal that implement MethodSpec.Builder
