Class APMethodInfo
- java.lang.Object
-
- org.openjdk.jmh.generators.annotations.APMetadataInfo
-
- org.openjdk.jmh.generators.annotations.APMethodInfo
-
- All Implemented Interfaces:
java.lang.Comparable<MethodInfo>,MetadataInfo,MethodInfo
class APMethodInfo extends APMetadataInfo implements MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private ClassInfociprivate javax.lang.model.element.ExecutableElementel-
Fields inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
processEnv
-
-
Constructor Summary
Constructors Constructor Description APMethodInfo(javax.annotation.processing.ProcessingEnvironment processEnv, ClassInfo ci, javax.lang.model.element.ExecutableElement el)
-
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()java.lang.StringtoString()-
Methods inherited from class org.openjdk.jmh.generators.annotations.APMetadataInfo
getElement
-
-
-
-
Field Detail
-
ci
private final ClassInfo ci
-
el
private final javax.lang.model.element.ExecutableElement el
-
-
Constructor Detail
-
APMethodInfo
public APMethodInfo(javax.annotation.processing.ProcessingEnvironment processEnv, ClassInfo ci, javax.lang.model.element.ExecutableElement el)
-
-
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.
-
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
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedNamein interfaceMethodInfo- Returns:
- fully qualified method name, includes class qualified name
-
compareTo
public int compareTo(MethodInfo o)
- Specified by:
compareToin interfacejava.lang.Comparable<MethodInfo>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-