Class ASMMethodInfo

    • 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
      int compareTo​(MethodInfo o)  
      <T extends java.lang.annotation.Annotation>
      T
      getAnnotation​(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()  
      org.objectweb.asm.AnnotationVisitor visitAnnotation​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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
    • 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:
        getAnnotation in interface MethodInfo
        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:
        visitAnnotation in class org.objectweb.asm.MethodVisitor
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MethodInfo
        Returns:
        short method name.
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Specified by:
        getQualifiedName in interface MethodInfo
        Returns:
        fully qualified method name, includes class qualified name
      • getReturnType

        public java.lang.String getReturnType()
        Specified by:
        getReturnType in interface MethodInfo
        Returns:
        fully qualified return type
      • isPublic

        public boolean isPublic()
        Specified by:
        isPublic in interface MethodInfo
        Returns:
        true, if method is public
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface MethodInfo
        Returns:
        true, if method is abstract
      • isSynchronized

        public boolean isSynchronized()
        Specified by:
        isSynchronized in interface MethodInfo
        Returns:
        true, if method is synchronized
      • isStrictFP

        public boolean isStrictFP()
        Specified by:
        isStrictFP in interface MethodInfo
        Returns:
        true, if method is strictfp
      • isStatic

        public boolean isStatic()
        Specified by:
        isStatic in interface MethodInfo
        Returns:
        true, if method is static
      • compareTo

        public int compareTo​(MethodInfo o)
        Specified by:
        compareTo in interface java.lang.Comparable<MethodInfo>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object