Package com.iizix.api

Enum Class AnnotationType

java.lang.Object
java.lang.Enum<AnnotationType>
com.iizix.api.AnnotationType
All Implemented Interfaces:
Serializable, Comparable<AnnotationType>, Constable

public enum AnnotationType extends Enum<AnnotationType>
The annotation types.
Author:
Christopher Mindus
  • Enum Constant Details

  • Field Details

    • fqn

      public final String fqn
      The class name for the annotation.
    • scope

      public final AnnotationType scope
      The type used for annotation scoping, null for none.
    • isScope

      public final boolean isScope
      Flag indicating this is the scope annotation.
    • refDescription

      public final String refDescription
      The description of the supported classes being referenced, null for none.
    • refPropClasses

      public final Class<?>[] refPropClasses
      Array of supported property classes being referenced, null for none.
    • signature

      public final String signature
      Method signature as e.g. "void(com.iizix.api.vs.VSActionEvent,java.lang.String)".
    • params

      public final String params
      Parameters names (signature) as e.g. "event,myString".
    • isStatic

      public final boolean isStatic
      Static flag, used for methods and classes (not reference type annotations).
    • processor

      public final IAnnotationReferenceProcessor<?,?> processor
      The reference processor interface, null if not a reference annotation type.
  • Method Details

    • values

      public static AnnotationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AnnotationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getEventAtom

      public Atom getEventAtom()
      Gets the atom for the event.
      Returns:
      An atom as Atom.get('$'+name()).
    • isReferenceClassAllowed

      public boolean isReferenceClassAllowed(Class<?> refClass)
      Verifies if a class is allowed as the referenced property class.
      Parameters:
      refClass - The class reference found.
      Returns:
      true if allowed, false otherwise.
    • fromEventAtom

      public static AnnotationType fromEventAtom(Atom atom)
      Gets the annotation type that matches an atom method event property name.
      Parameters:
      atom - The atom name should be in the form of "$OnNNN".
      Returns:
      The annotation type matching, or null for none.