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.VariableElement
ve
-
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)
ClassInfo
getDeclaringClass()
java.lang.String
getName()
ClassInfo
getType()
boolean
isFinal()
boolean
isPublic()
boolean
isStatic()
java.lang.String
toString()
-
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:
getAnnotation
in interfaceFieldInfo
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- field-level annotation, if any; null otherwise
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClass
in interfaceFieldInfo
- Returns:
- reference to syntactically-enclosing class
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-