Class APMethodInfo
java.lang.Object
org.openjdk.jmh.generators.annotations.APMetadataInfo
org.openjdk.jmh.generators.annotations.APMethodInfo
- All Implemented Interfaces:
Comparable<MethodInfo>
,MetadataInfo
,MethodInfo
-
Field Summary
FieldsFields inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
processEnv
-
Constructor Summary
ConstructorsConstructorDescriptionAPMethodInfo
(ProcessingEnvironment processEnv, ClassInfo ci, ExecutableElement el) -
Method Summary
Modifier and TypeMethodDescriptionint
<T extends Annotation>
TgetAnnotation
(Class<T> annClass) getName()
boolean
boolean
isPublic()
boolean
isStatic()
boolean
boolean
toString()
Methods inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
getElement
-
Field Details
-
ci
-
el
-
-
Constructor Details
-
APMethodInfo
-
-
Method Details
-
getDeclaringClass
- Specified by:
getDeclaringClass
in interfaceMethodInfo
- Returns:
- reference to syntactically-enclosing class
-
getName
- Specified by:
getName
in interfaceMethodInfo
- Returns:
- short method name.
-
getReturnType
- Specified by:
getReturnType
in interfaceMethodInfo
- Returns:
- fully qualified return type
-
getParameters
- Specified by:
getParameters
in interfaceMethodInfo
- Returns:
- collection of method parameters.
-
getAnnotation
- Specified by:
getAnnotation
in interfaceMethodInfo
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- method-level annotation, if any; null otherwise
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceMethodInfo
- Returns:
- true, if method is public
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstract
in interfaceMethodInfo
- Returns:
- true, if method is abstract
-
isSynchronized
public boolean isSynchronized()- Specified by:
isSynchronized
in interfaceMethodInfo
- Returns:
- true, if method is synchronized
-
isStrictFP
public boolean isStrictFP()- Specified by:
isStrictFP
in interfaceMethodInfo
- Returns:
- true, if method is strictfp
-
isStatic
public boolean isStatic()- Specified by:
isStatic
in interfaceMethodInfo
- Returns:
- true, if method is static
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceMethodInfo
- Returns:
- fully qualified method name, includes class qualified name
-
compareTo
- Specified by:
compareTo
in interfaceComparable<MethodInfo>
-
toString
-