Class MirrorTypeFactory.MirrorEnumConstant

java.lang.Object
org.infinispan.protostream.annotations.impl.processor.types.MirrorTypeFactory.MirrorEnumConstant
All Implemented Interfaces:
XElement, XEnumConstant
Enclosing class:
MirrorTypeFactory

private final class MirrorTypeFactory.MirrorEnumConstant extends Object implements XEnumConstant
  • Field Details

    • declaringClass

      private final XClass declaringClass
    • e

      private final VariableElement e
    • ordinal

      private final int ordinal
    • modifiers

      private final int modifiers
  • Constructor Details

  • Method Details

    • getOrdinal

      public int getOrdinal()
      Specified by:
      getOrdinal in interface XEnumConstant
    • getName

      public String getName()
      Specified by:
      getName in interface XElement
    • getModifiers

      public int getModifiers()
      Description copied from interface: XElement
      The modifiers, as per java.lang.reflect.Modifier.
      Specified by:
      getModifiers in interface XElement
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
      Description copied from interface: XElement
      Returns this element's annotation if present.
      Specified by:
      getAnnotation in interface XElement
    • getAnnotationsByType

      public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationClass)
      Specified by:
      getAnnotationsByType in interface XElement
    • getDocumentation

      public String getDocumentation()
      Description copied from interface: XElement
      Collect and concatenate the description text from the (possibly multiple) @ProtoDoc.value annotations found on the element, in order of occurrence.
      Specified by:
      getDocumentation in interface XElement
      Returns:
      the documentation or null if no doc or empty doc present
    • getDeclaringClass

      public XClass getDeclaringClass()
      Specified by:
      getDeclaringClass in interface XEnumConstant