Package org.objectweb.asm.attrs

Provides an implementation for various optional class, field, method and bytecode attributes.

See:
          Description

Interface Summary
Dumpable Dumpable interface has to be implemented by the Attribute class in order to support DumpClassVisitor and DumpCodeVisitor.
 

Class Summary
Annotation Annotation data contains an annotated type and its array of the member-value pairs.
AnnotationDefaultAttribute The AnnotationDefault attribute is a variable length attribute in the attributes table of certain method_info structures, namely those representing members of annotation types.
AnnotationMemberValue The member_value structure is a discriminated union representing the value of a member-value pair.
AnnotationMemberValue.EnumConstValue Container class used to store enum_const_value structure.
EnclosingMethodAttribute The EnclosingMethod attribute is an optional fixed-length attribute in the attributes table of the ClassFile structure.
RuntimeInvisibleAnnotations The RuntimeInvisibleAnnotations attribute is similar to the RuntimeVisibleAnnotations attribute, except that the annotations represented by a RuntimeInvisibleAnnotations attribute must not be made available for return by reflective APIs, unless the JVM has been instructed to retain these annotations via some implementation-specific mechanism such as a command line flag.
RuntimeInvisibleParameterAnnotations The RuntimeInvisibleParameterAnnotations attribute is similar to the RuntimeVisibleParameterAnnotations attribute, except that the annotations represented by a RuntimeInvisibleParameterAnnotations attribute must not be made available for return by reflective APIs, unless the JVM has specifically been instructed to retain these annotations via some implementation-specific mechanism such as a command line flag.
RuntimeVisibleAnnotations The RuntimeVisibleAnnotations attribute is a variable length attribute in the attributes table of the ClassFile, field_info, and method_info structures.
RuntimeVisibleParameterAnnotations The RuntimeVisibleParameterAnnotations attribute is a variable length attribute in the attributes table of the method_info structure.
SignatureAttribute The Signature Attribute introduced in JSR-14 (Adding Generics to the Java Programming Language) and also defined in the Java Virtual Machine Specification, 3rd edition draft.
SourceDebugExtensionAttribute The SourceDebugExtension attribute is an optional attribute defined in JSR-045 in the attributes table of the ClassFile structure.
StackMapAttribute StackMapAttribute is used by CDLC preverifier and also by javac compiller starting from J2SE 1.5.
StackMapFrame StackMapFrame is used by StackMapAttribute to hold state of the stack and local variables for a single execution branch.
StackMapType Verification type info used by StackMapAttribute.
 

Package org.objectweb.asm.attrs Description

Provides an implementation for various optional class, field, method and bytecode attributes.

By default ASM strips optional attributes, in order to keep them in the bytecode that is being readed should pass an array of required attribute instances to ClassReader.accept() method. In order to add custom attributes to the manually constructed bytecode concrete subclasses of the Attribute can be passed to the correspond visit methods of the ClassVisitor and CodeVisitor.

Since:
ASM 1.4.1