Class TypePool.Default.TypeExtractor.MethodExtractor

    • Field Detail

      • modifiers

        private final int modifiers
        The modifiers found for this method.
      • internalName

        private final java.lang.String internalName
        The internal name found for this method.
      • descriptor

        private final java.lang.String descriptor
        The descriptor found for this method.
      • genericSignature

        private final java.lang.String genericSignature
        The generic signature of the method or null if it is not generic.
      • exceptionName

        private final java.lang.String[] exceptionName
        An array of internal names of the exceptions of the found method or null if there are no such exceptions.
      • typeVariableAnnotationTokens

        private final java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> typeVariableAnnotationTokens
        A mapping of the method's type variables' type annotations by their indices.
      • typeVariableBoundAnnotationTokens

        private final java.util.Map<java.lang.Integer,​java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> typeVariableBoundAnnotationTokens
        A mapping of the method's type variables' bounds' type annotations by their indices and each variable's index.
      • parameterTypeAnnotationTokens

        private final java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> parameterTypeAnnotationTokens
        A mapping of the parameters' type annotations by their indices.
      • exceptionTypeAnnotationTokens

        private final java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> exceptionTypeAnnotationTokens
        A mapping of the exception types' type annotations by their indices.
      • parameterAnnotationTokens

        private final java.util.Map<java.lang.Integer,​java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens
        A mapping of parameter indices to annotation tokens found for the parameters at these indices.
      • legacyParameterBag

        private final TypePool.Default.ParameterBag legacyParameterBag
        A bag of parameter meta information representing debugging information which allows to extract a method's parameter names.
      • firstLabel

        private org.objectweb.asm.Label firstLabel
        The first label that is found in the method's body, if any, denoting the start of the method. This label can be used to identify names of local variables that describe the method's parameters.
      • visibleParameterShift

        private int visibleParameterShift
        A shift index for visible parameters that indicates a deviation of the actual parameter index.
      • invisibleParameterShift

        private int invisibleParameterShift
        A shift index for invisible parameters that indicates a deviation of the actual parameter index.
      • defaultValue

        private AnnotationValue<?,​?> defaultValue
        The default value of the found method or null if no such value exists.
    • Constructor Detail

      • MethodExtractor

        protected MethodExtractor​(int modifiers,
                                  java.lang.String internalName,
                                  java.lang.String descriptor,
                                  java.lang.String genericSignature,
                                  java.lang.String[] exceptionName)
        Creates a method extractor.
        Parameters:
        modifiers - The modifiers found for this method.
        internalName - The internal name found for this method.
        descriptor - The descriptor found for this method.
        genericSignature - The generic signature of the method or null if it is not generic.
        exceptionName - An array of internal names of the exceptions of the found method or null if there are no such exceptions.
    • Method Detail

      • visitTypeAnnotation

        public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation​(int rawTypeReference,
                                                                       org.objectweb.asm.TypePath typePath,
                                                                       java.lang.String descriptor,
                                                                       boolean visible)
        Overrides:
        visitTypeAnnotation in class org.objectweb.asm.MethodVisitor
      • visitAnnotation

        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String descriptor,
                                                                   boolean visible)
        Overrides:
        visitAnnotation in class org.objectweb.asm.MethodVisitor
      • visitAnnotableParameterCount

        public void visitAnnotableParameterCount​(int count,
                                                 boolean visible)
        Overrides:
        visitAnnotableParameterCount in class org.objectweb.asm.MethodVisitor
      • visitParameterAnnotation

        public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation​(int index,
                                                                            java.lang.String descriptor,
                                                                            boolean visible)
        Overrides:
        visitParameterAnnotation in class org.objectweb.asm.MethodVisitor
      • visitLabel

        public void visitLabel​(org.objectweb.asm.Label label)
        Overrides:
        visitLabel in class org.objectweb.asm.MethodVisitor
      • visitLocalVariable

        public void visitLocalVariable​(java.lang.String name,
                                       java.lang.String descriptor,
                                       java.lang.String signature,
                                       org.objectweb.asm.Label start,
                                       org.objectweb.asm.Label end,
                                       int index)
        Overrides:
        visitLocalVariable in class org.objectweb.asm.MethodVisitor
      • visitParameter

        public void visitParameter​(java.lang.String name,
                                   int modifiers)
        Overrides:
        visitParameter in class org.objectweb.asm.MethodVisitor
      • visitAnnotationDefault

        public org.objectweb.asm.AnnotationVisitor visitAnnotationDefault()
        Overrides:
        visitAnnotationDefault in class org.objectweb.asm.MethodVisitor
      • register

        public void register​(java.lang.String ignored,
                             AnnotationValue<?,​?> annotationValue)
        Registers an annotation value.
        Specified by:
        register in interface TypePool.Default.AnnotationRegistrant
        Parameters:
        ignored - The name of the annotation value.
        annotationValue - The value of the annotation.
      • visitEnd

        public void visitEnd()
        Overrides:
        visitEnd in class org.objectweb.asm.MethodVisitor