Class APFieldInfo
- java.lang.Object
-
- org.openjdk.jmh.generators.annotations.APMetadataInfo
-
- org.openjdk.jmh.generators.annotations.APFieldInfo
-
- All Implemented Interfaces:
FieldInfo,MetadataInfo
class APFieldInfo extends APMetadataInfo implements FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.VariableElementve-
Fields inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
processEnv
-
-
Constructor Summary
Constructors Constructor Description APFieldInfo(javax.annotation.processing.ProcessingEnvironment processEnv, javax.lang.model.element.VariableElement ve)
-
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)ClassInfogetDeclaringClass()java.lang.StringgetName()ClassInfogetType()booleanisFinal()booleanisPublic()booleanisStatic()java.lang.StringtoString()-
Methods inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
getElement
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getType
public ClassInfo getType()
-
isPublic
public boolean isPublic()
-
isStatic
public boolean isStatic()
-
isFinal
public boolean isFinal()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
- Specified by:
getAnnotationin interfaceFieldInfo- Type Parameters:
T- annotation type- Parameters:
annClass- annotation class- Returns:
- field-level annotation, if any; null otherwise
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceFieldInfo- Returns:
- reference to syntactically-enclosing class
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-