Package org.openjdk.jmh.generators.core
Interface MethodInfo
-
- All Superinterfaces:
java.lang.Comparable<MethodInfo>
,MetadataInfo
- All Known Implementing Classes:
APMethodInfo
,ASMMethodInfo
,RFConstructorInfo
,RFMethodInfo
public interface MethodInfo extends java.lang.Comparable<MethodInfo>, MetadataInfo
Method info.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annClass)
ClassInfo
getDeclaringClass()
java.lang.String
getName()
java.util.Collection<ParameterInfo>
getParameters()
java.lang.String
getQualifiedName()
java.lang.String
getReturnType()
boolean
isAbstract()
boolean
isPublic()
boolean
isStatic()
boolean
isStrictFP()
boolean
isSynchronized()
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- short method name.
-
getQualifiedName
java.lang.String getQualifiedName()
- Returns:
- fully qualified method name, includes class qualified name
-
getReturnType
java.lang.String getReturnType()
- Returns:
- fully qualified return type
-
getParameters
java.util.Collection<ParameterInfo> getParameters()
- Returns:
- collection of method parameters.
-
getDeclaringClass
ClassInfo getDeclaringClass()
- Returns:
- reference to syntactically-enclosing class
-
getAnnotation
<T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.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
-
-