Class TypeAnnotationNode

    • Field Detail

      • typeRef

        public int typeRef
        A reference to the annotated type. See TypeReference.
      • typePath

        public TypePath typePath
        The path to the annotated type argument, wildcard bound, array element type, or static outer type within the referenced type. May be null if the annotation targets 'typeRef' as a whole.
    • Constructor Detail

      • TypeAnnotationNode

        public TypeAnnotationNode​(int typeRef,
                                  TypePath typePath,
                                  java.lang.String descriptor)
        Constructs a new AnnotationNode. Subclasses must not use this constructor. Instead, they must use the TypeAnnotationNode(int, int, TypePath, String) version.
        Parameters:
        typeRef - a reference to the annotated type. See TypeReference.
        typePath - the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
        descriptor - the class descriptor of the annotation class.
        Throws:
        java.lang.IllegalStateException - If a subclass calls this constructor.
      • TypeAnnotationNode

        public TypeAnnotationNode​(int api,
                                  int typeRef,
                                  TypePath typePath,
                                  java.lang.String descriptor)
        Constructs a new AnnotationNode.
        Parameters:
        api - the ASM API version implemented by this visitor. Must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6, Opcodes.ASM7, Opcodes.ASM8 or Opcodes.ASM9.
        typeRef - a reference to the annotated type. See TypeReference.
        typePath - the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
        descriptor - the class descriptor of the annotation class.