Class RFMethodInfo
- java.lang.Object
-
- org.openjdk.jmh.generators.reflection.RFMethodInfo
-
- All Implemented Interfaces:
java.lang.Comparable<MethodInfo>,MetadataInfo,MethodInfo
class RFMethodInfo extends java.lang.Object implements MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private RFClassInfodeclaringClassprivate java.lang.reflect.Methodm
-
Constructor Summary
Constructors Constructor Description RFMethodInfo(RFClassInfo declaringClass, java.lang.reflect.Method m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MethodInfo o)<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annClass)ClassInfogetDeclaringClass()java.lang.StringgetName()java.util.Collection<ParameterInfo>getParameters()java.lang.StringgetQualifiedName()java.lang.StringgetReturnType()booleanisAbstract()booleanisPublic()booleanisStatic()booleanisStrictFP()booleanisSynchronized()
-
-
-
Field Detail
-
declaringClass
private final RFClassInfo declaringClass
-
m
private final java.lang.reflect.Method m
-
-
Constructor Detail
-
RFMethodInfo
public RFMethodInfo(RFClassInfo declaringClass, java.lang.reflect.Method m)
-
-
Method Detail
-
getDeclaringClass
public ClassInfo getDeclaringClass()
- Specified by:
getDeclaringClassin interfaceMethodInfo- Returns:
- reference to syntactically-enclosing class
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceMethodInfo- Returns:
- short method name.
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedNamein interfaceMethodInfo- Returns:
- fully qualified method name, includes class qualified name
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnTypein interfaceMethodInfo- Returns:
- fully qualified return type
-
getParameters
public java.util.Collection<ParameterInfo> getParameters()
- Specified by:
getParametersin interfaceMethodInfo- Returns:
- collection of method parameters.
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
- Specified by:
getAnnotationin interfaceMethodInfo- Type Parameters:
T- annotation type- Parameters:
annClass- annotation class- Returns:
- method-level annotation, if any; null otherwise
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceMethodInfo- Returns:
- true, if method is public
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceMethodInfo- Returns:
- true, if method is abstract
-
isSynchronized
public boolean isSynchronized()
- Specified by:
isSynchronizedin interfaceMethodInfo- Returns:
- true, if method is synchronized
-
isStrictFP
public boolean isStrictFP()
- Specified by:
isStrictFPin interfaceMethodInfo- Returns:
- true, if method is strictfp
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceMethodInfo- Returns:
- true, if method is static
-
compareTo
public int compareTo(MethodInfo o)
- Specified by:
compareToin interfacejava.lang.Comparable<MethodInfo>
-
-