public class TypeAnnotationsAttribute extends AttributeInfo
RuntimeVisibleTypeAnnotations attribute and
 RuntimeInvisibleTypeAnnotations attribute.| Modifier and Type | Field and Description | 
|---|---|
| static String | invisibleTagThe name of the  RuntimeInvisibleTypeAnnotationsattribute. | 
| static String | visibleTagThe name of the  RuntimeVisibleTypeAnnotationsattribute. | 
constPool| Constructor and Description | 
|---|
| TypeAnnotationsAttribute(ConstPool cp,
                        String attrname,
                        byte[] info)Constructs a  Runtime(In)VisibleTypeAnnotations_attribute. | 
| Modifier and Type | Method and Description | 
|---|---|
| AttributeInfo | copy(ConstPool newCp,
    Map classnames)Copies this attribute and returns a new copy. | 
| int | numAnnotations()Returns  num_annotations. | 
get, getConstPool, getName, length, setpublic static final String visibleTag
RuntimeVisibleTypeAnnotations attribute.public static final String invisibleTag
RuntimeInvisibleTypeAnnotations attribute.public TypeAnnotationsAttribute(ConstPool cp, String attrname, byte[] info)
Runtime(In)VisibleTypeAnnotations_attribute.cp - constant poolattrname - attribute name (visibleTag or
                      invisibleTag).info - the contents of this attribute.  It does not
                      include attribute_name_index or
                      attribute_length.public int numAnnotations()
num_annotations.public AttributeInfo copy(ConstPool newCp, Map classnames)
copy in class AttributeInfonewCp - the constant pool table used by the new copy.classnames - pairs of replaced and substituted
                          class names.Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.