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 ClassInfo
ci
private javax.lang.model.element.ExecutableElement
el
-
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 int
compareTo(MethodInfo o)
<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()
java.lang.String
toString()
-
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:
getDeclaringClass
in interfaceMethodInfo
- Returns:
- reference to syntactically-enclosing class
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceMethodInfo
- Returns:
- short method name.
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnType
in interfaceMethodInfo
- Returns:
- fully qualified return type
-
getParameters
public java.util.Collection<ParameterInfo> getParameters()
- Specified by:
getParameters
in interfaceMethodInfo
- Returns:
- collection of method parameters.
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annClass)
- Specified by:
getAnnotation
in interfaceMethodInfo
- Type Parameters:
T
- annotation type- Parameters:
annClass
- annotation class- Returns:
- method-level annotation, if any; null otherwise
-
isPublic
public boolean isPublic()
- Specified by:
isPublic
in interfaceMethodInfo
- Returns:
- true, if method is public
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstract
in interfaceMethodInfo
- Returns:
- true, if method is abstract
-
isSynchronized
public boolean isSynchronized()
- Specified by:
isSynchronized
in interfaceMethodInfo
- Returns:
- true, if method is synchronized
-
isStrictFP
public boolean isStrictFP()
- Specified by:
isStrictFP
in interfaceMethodInfo
- Returns:
- true, if method is strictfp
-
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interfaceMethodInfo
- Returns:
- true, if method is static
-
getQualifiedName
public java.lang.String getQualifiedName()
- Specified by:
getQualifiedName
in interfaceMethodInfo
- Returns:
- fully qualified method name, includes class qualified name
-
compareTo
public int compareTo(MethodInfo o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MethodInfo>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-