Class AsmMethod

  • All Implemented Interfaces:
    IGeneric

    public class AsmMethod
    extends java.lang.Object
    implements IGeneric
    • Field Detail

      • _methodType

        private AsmType _methodType
      • _modifiers

        private int _modifiers
      • _returnType

        private AsmType _returnType
      • _genericReturnType

        private AsmType _genericReturnType
      • _parameters

        private java.util.List<AsmType> _parameters
      • _paramInfos

        private java.util.List<Parameter> _paramInfos
      • _genericParameters

        private java.util.List<AsmType> _genericParameters
      • _exceptions

        private java.util.List<AsmType> _exceptions
      • _genericExceptions

        private java.util.List<AsmType> _genericExceptions
      • _annotations

        private java.util.List<AsmAnnotation> _annotations
      • _paramAnnotations

        private java.util.List<AsmAnnotation>[] _paramAnnotations
      • _bGeneric

        private boolean _bGeneric
      • _defaultAnnoValue

        private java.lang.Object _defaultAnnoValue
      • _iLine

        private int _iLine
    • Constructor Detail

      • AsmMethod

        public AsmMethod​(AsmClass owner,
                         int access,
                         java.lang.String name,
                         java.lang.String desc,
                         java.lang.String[] exceptions)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getMethodType

        public AsmType getMethodType()
      • getModifiers

        public int getModifiers()
      • getParameters

        public java.util.List<AsmType> getParameters()
      • getGenericParameters

        public java.util.List<AsmType> getGenericParameters()
      • getReturnType

        public AsmType getReturnType()
      • setReturnType

        void setReturnType​(AsmType returnType)
      • getGenericReturnType

        public AsmType getGenericReturnType()
      • initGenericReturnType

        void initGenericReturnType()
      • getDeclaringClass

        public AsmClass getDeclaringClass()
      • isGeneric

        public boolean isGeneric()
        Specified by:
        isGeneric in interface IGeneric
      • isSynthetic

        public boolean isSynthetic()
      • isBridge

        public boolean isBridge()
      • isConstructor

        public boolean isConstructor()
      • getExceptions

        public java.util.List<AsmType> getExceptions()
      • getGenericExceptions

        public java.util.List<AsmType> getGenericExceptions()
      • initGenericExceptions

        void initGenericExceptions()
      • getAnnotations

        public java.util.List<AsmAnnotation> getAnnotations()
      • getParameterAnnotations

        public java.util.List<AsmAnnotation>[] getParameterAnnotations()
      • getAnnotationDefaultValue

        public java.lang.Object getAnnotationDefaultValue()
      • setAnnotationDefaultValue

        public void setAnnotationDefaultValue​(java.lang.Object value)
      • isAnnotationPresent

        public boolean isAnnotationPresent​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
      • getAnnotation

        public AsmAnnotation getAnnotation​(java.lang.Class annotationClass)
      • assignExceptions

        private void assignExceptions​(java.lang.String[] exceptions)
      • assignTypeFromDesc

        private void assignTypeFromDesc​(java.lang.String desc)
      • addAnnotation

        public void addAnnotation​(AsmAnnotation asmAnnotation)
      • addParameterAnnotation

        public void addParameterAnnotation​(int iParam,
                                           AsmAnnotation asmAnnotation)
      • toString

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

        private java.lang.String makeParameterString()
      • makeTypeVarsString

        private java.lang.String makeTypeVarsString()
      • assignLineNumber

        void assignLineNumber​(int iLine)
      • getLineNumber

        public int getLineNumber()
      • findTypeVariable

        public AsmType findTypeVariable​(java.lang.String tv)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • assignParameter

        void assignParameter​(java.lang.String name,
                             int access)
      • getParameterInfos

        public java.util.List<Parameter> getParameterInfos()