Package org.openjdk.jmh.generators.core
Interface MethodInfo
-
- All Superinterfaces:
Comparable<MethodInfo>,MetadataInfo
public interface MethodInfo extends Comparable<MethodInfo>, MetadataInfo
Method info.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> annClass)ClassInfogetDeclaringClass()StringgetName()Collection<ParameterInfo>getParameters()StringgetQualifiedName()StringgetReturnType()booleanisAbstract()booleanisPublic()booleanisStatic()booleanisStrictFP()booleanisSynchronized()-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
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
<T extends Annotation> T getAnnotation(Class<T> annClass)
- 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
-
-