Package org.openjdk.jmh.generators.asm
Class ASMMethodInfo
- java.lang.Object
-
- org.objectweb.asm.MethodVisitor
-
- org.openjdk.jmh.generators.asm.ASMMethodInfo
-
- All Implemented Interfaces:
java.lang.Comparable<MethodInfo>,MetadataInfo,MethodInfo
class ASMMethodInfo extends org.objectweb.asm.MethodVisitor implements MethodInfo
-
-
Field Summary
Fields Modifier and Type Field Description private intaccessprivate java.util.Map<java.lang.String,AnnotationInvocationHandler>annotationsprivate org.objectweb.asm.Type[]argumentTypesprivate ASMClassInfodeclaringClassprivate java.lang.Stringnameprivate ClassInfoReporepoprivate java.lang.StringreturnType
-
Constructor Summary
Constructors Constructor Description ASMMethodInfo(org.objectweb.asm.MethodVisitor methodVisitor, ClassInfoRepo repo, ASMClassInfo declaringClass, int access, java.lang.String name, java.lang.String desc, java.lang.String signature)
-
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()org.objectweb.asm.AnnotationVisitorvisitAnnotation(java.lang.String desc, boolean visible)-
Methods inherited from class org.objectweb.asm.MethodVisitor
getDelegate, visitAnnotableParameterCount, visitAnnotationDefault, visitAttribute, visitCode, visitEnd, visitFieldInsn, visitFrame, visitIincInsn, visitInsn, visitInsnAnnotation, visitIntInsn, visitInvokeDynamicInsn, visitJumpInsn, visitLabel, visitLdcInsn, visitLineNumber, visitLocalVariable, visitLocalVariableAnnotation, visitLookupSwitchInsn, visitMaxs, visitMethodInsn, visitMethodInsn, visitMultiANewArrayInsn, visitParameter, visitParameterAnnotation, visitTableSwitchInsn, visitTryCatchAnnotation, visitTryCatchBlock, visitTypeAnnotation, visitTypeInsn, visitVarInsn
-
-
-
-
Field Detail
-
declaringClass
private final ASMClassInfo declaringClass
-
annotations
private final java.util.Map<java.lang.String,AnnotationInvocationHandler> annotations
-
access
private final int access
-
name
private final java.lang.String name
-
returnType
private final java.lang.String returnType
-
argumentTypes
private final org.objectweb.asm.Type[] argumentTypes
-
repo
private final ClassInfoRepo repo
-
-
Constructor Detail
-
ASMMethodInfo
public ASMMethodInfo(org.objectweb.asm.MethodVisitor methodVisitor, ClassInfoRepo repo, ASMClassInfo declaringClass, int access, java.lang.String name, java.lang.String desc, java.lang.String signature)
-
-
Method Detail
-
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
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)- Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
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.
-
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>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-