Class EditableJavaAnnotation

java.lang.Object
com.github.tadukoo.java.annotation.JavaAnnotation
com.github.tadukoo.java.annotation.EditableJavaAnnotation
All Implemented Interfaces:
JavaCodeType, JavaTokens

public class EditableJavaAnnotation extends JavaAnnotation
Represents an annotation in Java that can be modified
Since:
Alpha v.0.4
Version:
Beta v.0.5
Author:
Logan Ferree (Tadukoo)
  • Method Details

    • builder

      Returns:
      A new EditableJavaAnnotation.EditableJavaAnnotationBuilder to use to make an EditableJavaAnnotation
    • setName

      public void setName(String name)
      Parameters:
      name - The name of the annotation
    • setCanonicalName

      public void setCanonicalName(String canonicalName)
      Parameters:
      canonicalName - The canonical name of the annotation
    • addParameter

      public void addParameter(String name, String value)
      Parameters:
      name - The name of the parameter to be added to the annotation
      value - The value of the parameter to be added to the annotation
    • addParameter

      public void addParameter(com.github.tadukoo.util.tuple.Pair<String,String> parameter)
      Parameters:
      parameter - A parameter to be added to the annotation (as a Pair of name and value)
    • addParameters

      public void addParameters(List<com.github.tadukoo.util.tuple.Pair<String,String>> parameters)
      Parameters:
      parameters - Parameters to be added to the annotation (as Pairs of name and value)
    • setParameters

      public void setParameters(List<com.github.tadukoo.util.tuple.Pair<String,String>> parameters)
      Parameters:
      parameters - The parameters of the annotation (as Pairs of name and value)