Package org.openjdk.jmh.generators.core
Interface FieldInfo
-
- All Superinterfaces:
MetadataInfo
public interface FieldInfo extends MetadataInfo
Field metadata info.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annClass)
ClassInfo
getDeclaringClass()
String
getName()
ClassInfo
getType()
boolean
isFinal()
boolean
isPublic()
boolean
isStatic()
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- field name
-
getType
ClassInfo getType()
- Returns:
- fully qualified field type
-
getDeclaringClass
ClassInfo getDeclaringClass()
- Returns:
- reference to syntactically-enclosing class
-
getAnnotation
<T extends Annotation> T getAnnotation(Class<T> annClass)
- 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
-
-