Class RFFieldInfo
- java.lang.Object
-
- org.openjdk.jmh.generators.reflection.RFFieldInfo
-
- All Implemented Interfaces:
FieldInfo
,MetadataInfo
class RFFieldInfo extends java.lang.Object implements FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private ClassInfo
declaringClass
private java.lang.reflect.Field
f
-
Constructor Summary
Constructors Constructor Description RFFieldInfo(ClassInfo declaringClass, java.lang.reflect.Field f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annClass)
ClassInfo
getDeclaringClass()
java.lang.String
getName()
ClassInfo
getType()
boolean
isFinal()
boolean
isPublic()
boolean
isStatic()
java.lang.String
toString()
-
-
-
Field Detail
-
declaringClass
private final ClassInfo declaringClass
-
f
private final java.lang.reflect.Field f
-
-
Constructor Detail
-
RFFieldInfo
public RFFieldInfo(ClassInfo declaringClass, java.lang.reflect.Field f)
-
-
Method Detail
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClass
in interfaceFieldInfo
- Returns:
- reference to syntactically-enclosing class
-
getName
public java.lang.String getName()
-
getType
public ClassInfo getType()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
- Specified by:
getAnnotation
in interfaceFieldInfo
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- field-level annotation, if any; null otherwise
-
isPublic
public boolean isPublic()
-
isStatic
public boolean isStatic()
-
isFinal
public boolean isFinal()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-