Package org.openjdk.jmh.generators.core
Interface MethodInfo
- All Superinterfaces:
Comparable<MethodInfo>
,MetadataInfo
- All Known Implementing Classes:
APMethodInfo
,ASMMethodInfo
,RFConstructorInfo
,RFMethodInfo
Method info.
-
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annClass) getName()
boolean
boolean
isPublic()
boolean
isStatic()
boolean
boolean
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getName
String getName()- Returns:
- short method name.
-
getQualifiedName
String getQualifiedName()- Returns:
- fully qualified method name, includes class qualified name
-
getReturnType
String getReturnType()- Returns:
- fully qualified return type
-
getParameters
Collection<ParameterInfo> getParameters()- Returns:
- collection of method parameters.
-
getDeclaringClass
ClassInfo getDeclaringClass()- Returns:
- reference to syntactically-enclosing class
-
getAnnotation
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- method-level annotation, if any; null otherwise
-
isPublic
boolean isPublic()- Returns:
- true, if method is public
-
isAbstract
boolean isAbstract()- Returns:
- true, if method is abstract
-
isSynchronized
boolean isSynchronized()- Returns:
- true, if method is synchronized
-
isStrictFP
boolean isStrictFP()- Returns:
- true, if method is strictfp
-
isStatic
boolean isStatic()- Returns:
- true, if method is static
-