Class TypeAnnotationData


  • public class TypeAnnotationData
    extends AnnotationData
    Type Annotation data is a specific kind of AnnotationData. As well as the normal data items needed to present an annotation, Type annotations require a TargetInfo descriptor. This descriptor is based on a TargetType, and it optionally may contain a location descriptor (when the Type is embedded in a collection).

    The TypeAnnotationData class is based on JDis's AnnotationData class, and contains the (jasm) class for representing TargetInfo.

    • Constructor Detail

      • TypeAnnotationData

        public TypeAnnotationData​(boolean invisible,
                                  ClassData cls)
    • Method Detail

      • read

        public void read​(java.io.DataInputStream in)
                  throws java.io.IOException
        Overrides:
        read in class AnnotationData
        Throws:
        java.io.IOException
      • printBody

        protected void printBody​(java.io.PrintWriter out,
                                 java.lang.String tab)
        Overrides:
        printBody in class AnnotationData