Class RFFieldInfo

java.lang.Object
org.openjdk.jmh.generators.reflection.RFFieldInfo
All Implemented Interfaces:
FieldInfo, MetadataInfo

class RFFieldInfo extends Object implements FieldInfo
  • Field Details

    • declaringClass

      private final ClassInfo declaringClass
    • f

      private final Field f
  • Constructor Details

    • RFFieldInfo

      public RFFieldInfo(ClassInfo declaringClass, Field f)
  • Method Details

    • getDeclaringClass

      public ClassInfo getDeclaringClass()
      Specified by:
      getDeclaringClass in interface FieldInfo
      Returns:
      reference to syntactically-enclosing class
    • getName

      public String getName()
      Specified by:
      getName in interface FieldInfo
      Returns:
      field name
    • getType

      public ClassInfo getType()
      Specified by:
      getType in interface FieldInfo
      Returns:
      fully qualified field type
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> annClass)
      Specified by:
      getAnnotation in interface FieldInfo
      Type Parameters:
      T - annotation type
      Parameters:
      annClass - annotation class
      Returns:
      field-level annotation, if any; null otherwise
    • isPublic

      public boolean isPublic()
      Specified by:
      isPublic in interface FieldInfo
      Returns:
      true, if field is public
    • isStatic

      public boolean isStatic()
      Specified by:
      isStatic in interface FieldInfo
      Returns:
      true, if field is static
    • isFinal

      public boolean isFinal()
      Specified by:
      isFinal in interface FieldInfo
      Returns:
      true, if field is final
    • toString

      public String toString()
      Overrides:
      toString in class Object