Class ReflectionTypeFactory.ReflectionEnumConstant

java.lang.Object
org.infinispan.protostream.annotations.impl.types.ReflectionTypeFactory.ReflectionEnumConstant
All Implemented Interfaces:
XElement, XEnumConstant
Enclosing class:
ReflectionTypeFactory

private static final class ReflectionTypeFactory.ReflectionEnumConstant extends Object implements XEnumConstant
  • Field Details

    • declaringClass

      private final XClass declaringClass
    • e

      private final Enum<?> e
    • f

      private final Field f
  • Constructor Details

    • ReflectionEnumConstant

      private ReflectionEnumConstant(XClass declaringClass, Enum<?> e, Field f)
  • 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