Class ASMMethodInfo
java.lang.Object
org.objectweb.asm.MethodVisitor
org.openjdk.jmh.generators.asm.ASMMethodInfo
- All Implemented Interfaces:
Comparable<MethodInfo>, MetadataInfo, MethodInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Map<String, AnnotationInvocationHandler> private final org.objectweb.asm.Type[]private final ASMClassInfoprivate final Stringprivate final ClassInfoRepoprivate final StringFields inherited from class org.objectweb.asm.MethodVisitor
api, mv -
Constructor Summary
ConstructorsConstructorDescriptionASMMethodInfo(org.objectweb.asm.MethodVisitor methodVisitor, ClassInfoRepo repo, ASMClassInfo declaringClass, int access, String name, String desc, String signature) -
Method Summary
Modifier and TypeMethodDescriptionint<T extends Annotation>
TgetAnnotation(Class<T> annClass) getName()booleanbooleanisPublic()booleanisStatic()booleanbooleantoString()org.objectweb.asm.AnnotationVisitorvisitAnnotation(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 Details
-
declaringClass
-
annotations
-
access
private final int access -
name
-
returnType
-
argumentTypes
private final org.objectweb.asm.Type[] argumentTypes -
repo
-
-
Constructor Details
-
ASMMethodInfo
public ASMMethodInfo(org.objectweb.asm.MethodVisitor methodVisitor, ClassInfoRepo repo, ASMClassInfo declaringClass, int access, String name, String desc, String signature)
-
-
Method Details
-
getAnnotation
- Specified by:
getAnnotationin interfaceMethodInfo- Type Parameters:
T- annotation type- Parameters:
annClass- annotation class- Returns:
- method-level annotation, if any; null otherwise
-
visitAnnotation
- Overrides:
visitAnnotationin classorg.objectweb.asm.MethodVisitor
-
getDeclaringClass
- Specified by:
getDeclaringClassin interfaceMethodInfo- Returns:
- reference to syntactically-enclosing class
-
getName
- Specified by:
getNamein interfaceMethodInfo- Returns:
- short method name.
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceMethodInfo- Returns:
- fully qualified method name, includes class qualified name
-
getReturnType
- Specified by:
getReturnTypein interfaceMethodInfo- Returns:
- fully qualified return type
-
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
- Specified by:
compareToin interfaceComparable<MethodInfo>
-
toString
-