Package com.github.tadukoo.java
Class JavaAnnotationBuilder<AnnotationType extends JavaAnnotation>
java.lang.Object
com.github.tadukoo.java.JavaAnnotationBuilder<AnnotationType>
- Direct Known Subclasses:
EditableJavaAnnotation.EditableJavaAnnotationBuilder,UneditableJavaAnnotation.UneditableJavaAnnotationBuilder
Java Annotation Builder is used to build a new
JavaAnnotation. It contains the following parameters:
| Parameter | Description | Default or Required |
|---|---|---|
| name | The name of the annotation | Required |
- Since:
- Alpha v.0.3 (within JavaAnnotation), Alpha v.0.4 (on its own)
- Version:
- Alpha v.0.4
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Checks for any errors in the current parameters, then builds a newJavaAnnotationprotected abstract AnnotationTypeConstructs a newJavaAnnotationwith the given parameters
-
Field Details
-
name
The name of the annotation
-
-
Constructor Details
-
JavaAnnotationBuilder
protected JavaAnnotationBuilder()Constructs a newJavaAnnotationBuilder
-
-
Method Details
-
name
- Parameters:
name- The name of the annotation- Returns:
- this, to continue building
-
build
Checks for any errors in the current parameters, then builds a newJavaAnnotation- Returns:
- A newly built
JavaAnnotation - Throws:
IllegalArgumentException- if anything is wrong with the current parameters
-
constructAnnotation
Constructs a newJavaAnnotationwith the given parameters- Returns:
- The newly constructed
JavaAnnotation
-