Class JavaAnnotation

java.lang.Object
com.github.tadukoo.java.JavaAnnotation
Direct Known Subclasses:
EditableJavaAnnotation, UneditableJavaAnnotation

public abstract class JavaAnnotation extends Object
Represents an annotation in Java.
Since:
Alpha v.0.3 (as old version that is now more like UneditableJavaAnnotation), Alpha v.0.4 (as newer version)
Version:
Alpha v.0.4
Author:
Logan Ferree (Tadukoo)
  • Field Details

    • name

      protected String name
      The name of the annotation
  • Constructor Details

    • JavaAnnotation

      protected JavaAnnotation(boolean editable, String name)
      Constructs a new JavaAnnotation with the given parameters
      Parameters:
      editable - Whether the annotation is editable or not
      name - The name of the annotation
  • Method Details

    • isEditable

      public boolean isEditable()
      Returns:
      Whether the annotation is editable or not
    • getName

      public String getName()
      Returns:
      The name of the annotation
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      This Java Annotation as a string, ready to be put in some Java code
    • equals

      public boolean equals(Object otherAnnotation)
      Overrides:
      equals in class Object