Class JavaAnnotation.JavaAnnotationBuilder
java.lang.Object
com.github.tadukoo.parsing.code.java.JavaAnnotation.JavaAnnotationBuilder
- Enclosing class:
- JavaAnnotation
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 |
- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Checks for any errors in the current parameters, then builds a newJavaAnnotation
private void
Checks for any errors in the current parameters
-
Field Details
-
name
The name of the annotation
-
-
Constructor Details
-
JavaAnnotationBuilder
private JavaAnnotationBuilder()
-
-
Method Details
-
name
- Parameters:
name
- The name of the annotation- Returns:
- this, to continue building
-
checkForErrors
private void checkForErrors()Checks for any errors in the current parameters- Throws:
IllegalArgumentException
- if anything is wrong
-
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
-