Class APClassInfo
java.lang.Object
org.openjdk.jmh.generators.annotations.APMetadataInfo
org.openjdk.jmh.generators.annotations.APClassInfo
- All Implemented Interfaces:
ClassInfo
,MetadataInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeElement
private final boolean
private final TypeMirror
Fields inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
processEnv
-
Constructor Summary
ConstructorsConstructorDescriptionAPClassInfo
(ProcessingEnvironment processEnv, TypeElement element) APClassInfo
(ProcessingEnvironment processEnv, TypeMirror mirror) -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annClass) getName()
boolean
boolean
isEnum()
boolean
isFinal()
boolean
isInner()
boolean
isPublic()
boolean
toString()
Methods inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
getElement
-
Field Details
-
el
-
isSpecial
private final boolean isSpecial -
mirror
-
-
Constructor Details
-
APClassInfo
-
APClassInfo
-
-
Method Details
-
getAnnotation
- Specified by:
getAnnotation
in interfaceClassInfo
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- class-level annotation, if any; null otherwise
-
getConstructors
- Specified by:
getConstructors
in interfaceClassInfo
- Returns:
- collection of all constructors in class
-
getName
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceClassInfo
- Returns:
- fully qualified class name
-
getFields
-
getMethods
- Specified by:
getMethods
in interfaceClassInfo
- Returns:
- collection of all methods in class
-
getPackageName
- Specified by:
getPackageName
in interfaceClassInfo
- Returns:
- fully qualified package name
-
getSuperClass
- Specified by:
getSuperClass
in interfaceClassInfo
- Returns:
- reference to super-class metadata
-
getDeclaringClass
- Specified by:
getDeclaringClass
in interfaceClassInfo
- Returns:
- reference to syntactically-enclosing class
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceClassInfo
- Returns:
- true, if class is abstract
-
isPublic
public boolean isPublic() -
isStrictFP
public boolean isStrictFP()- Specified by:
isStrictFP
in interfaceClassInfo
- Returns:
- true, if class is strictfp
-
isFinal
public boolean isFinal() -
isInner
public boolean isInner() -
isEnum
public boolean isEnum() -
getEnumConstants
- Specified by:
getEnumConstants
in interfaceClassInfo
- Returns:
- if class is enum, the collection of its constant values; empty collection otherwise
-
toString
-