Package org.openjdk.jmh.generators.core
Interface FieldInfo
- All Superinterfaces:
MetadataInfo
- All Known Implementing Classes:
APFieldInfo
,ASMFieldInfo
,RFFieldInfo
Field metadata info.
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annClass) getName()
getType()
boolean
isFinal()
boolean
isPublic()
boolean
isStatic()
-
Method Details
-
getName
String getName()- Returns:
- field name
-
getType
ClassInfo getType()- Returns:
- fully qualified field type
-
getDeclaringClass
ClassInfo getDeclaringClass()- Returns:
- reference to syntactically-enclosing class
-
getAnnotation
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- field-level annotation, if any; null otherwise
-
isPublic
boolean isPublic()- Returns:
- true, if field is public
-
isStatic
boolean isStatic()- Returns:
- true, if field is static
-
isFinal
boolean isFinal()- Returns:
- true, if field is final
-