Uses of Class
org.apache.bcel.classfile.Attribute
Packages that use Attribute
Package
Description
This package contains the classes that describe the structure of a
Java class file and a class file parser.
This package contains the "generic" part of the
Byte Code Engineering
Library, i.e., classes to dynamically modify class objects and
byte code instructions.
This package contains utility classes for the
Byte Code Engineering
Library, namely:
-
Uses of Attribute in org.apache.bcel.classfile
Subclasses of Attribute in org.apache.bcel.classfileModifier and TypeClassDescriptionclass
Represents the default value of a annotation for a method infoclass
base class for annotationsclass
This class represents a BootstrapMethods attribute.final class
This class represents a chunk of Java byte code contained in a method.final class
This class is derived from Attribute and represents a constant value, i.e., a default value for initializing a class field.final class
This class is derived from Attribute and denotes that this is a deprecated method.class
This attribute exists for local or anonymous classes and ...final class
This class represents the table of exceptions that are thrown by a method.final class
This class is derived from Attribute and denotes that this class is an Inner class of another.final class
This class represents a table of line numbers for debugging purposes.class
This class represents colection of local variables in a method.class
class
This class represents a MethodParameters attribute.final class
This class is derived from Attribute and represents the list of modules required, exported, opened or provided by a module.final class
This class is derived from Attribute and indicates the main class of a module.final class
This class is derived from Attribute and represents the list of packages that are exported or opened by the Module attribute.final class
This class is derived from Attribute and records the nest host of the nest to which the current class or interface claims to belong.final class
This class is derived from Attribute and records the classes and interfaces that are authorized to claim membership in the nest hosted by the current class or interface.class
base class for parameter annotationsfinal class
This class is derived from Attribute and represents a reference to a PMG attribute.class
represents an annotation that is represented in the class file but is not provided to the JVM.class
Represents a parameter annotation that is represented in the class file but is not provided to the JVM.class
represents an annotation that is represented in the class file and is provided to the JVM.class
Represents a parameter annotation that is represented in the class file and is provided to the JVM.final class
This class is derived from Attribute and represents a reference to a GJ attribute.final class
This class is derived from Attribute and represents a reference to the source file of this class.final class
This class represents a stack map attribute used for preverification of Java classes for the Java 2 Micro Edition (J2ME).final class
This class is derived from Attribute and declares this class as `synthetic', i.e., it needs special handling.final class
This class represents a reference to an unknown (i.e., application-specific) attribute of a class.Fields in org.apache.bcel.classfile declared as AttributeModifier and TypeFieldDescriptionprivate Attribute[]
ClassParser.attributes
private Attribute[]
Code.attributes
protected Attribute[]
FieldOrMethod.attributes
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterprivate Attribute[]
JavaClass.attributes
Methods in org.apache.bcel.classfile that return AttributeModifier and TypeMethodDescriptionAnnotationDefault.copy
(ConstantPool _constant_pool) abstract Attribute
Attribute.copy
(ConstantPool _constant_pool) Code.copy
(ConstantPool _constant_pool) ConstantValue.copy
(ConstantPool _constant_pool) Deprecated.copy
(ConstantPool _constant_pool) EnclosingMethod.copy
(ConstantPool constant_pool) ExceptionTable.copy
(ConstantPool _constant_pool) InnerClasses.copy
(ConstantPool _constant_pool) LineNumberTable.copy
(ConstantPool _constant_pool) LocalVariableTable.copy
(ConstantPool _constant_pool) LocalVariableTypeTable.copy
(ConstantPool constant_pool) MethodParameters.copy
(ConstantPool _constant_pool) Module.copy
(ConstantPool _constant_pool) ModuleMainClass.copy
(ConstantPool _constant_pool) ModulePackages.copy
(ConstantPool _constant_pool) NestHost.copy
(ConstantPool _constant_pool) NestMembers.copy
(ConstantPool _constant_pool) ParameterAnnotations.copy
(ConstantPool constant_pool) PMGClass.copy
(ConstantPool _constant_pool) RuntimeInvisibleAnnotations.copy
(ConstantPool constant_pool) RuntimeVisibleAnnotations.copy
(ConstantPool constant_pool) Signature.copy
(ConstantPool _constant_pool) SourceFile.copy
(ConstantPool _constant_pool) StackMap.copy
(ConstantPool _constant_pool) Synthetic.copy
(ConstantPool _constant_pool) Unknown.copy
(ConstantPool _constant_pool) AttributeReader.createAttribute
(int name_index, int length, DataInputStream file, ConstantPool constant_pool) Deprecated.When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.UnknownAttributeReader.createAttribute
(int name_index, int length, DataInput file, ConstantPool constant_pool) When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.Code.getAttributes()
final Attribute[]
FieldOrMethod.getAttributes()
JavaClass.getAttributes()
static Attribute
Attribute.readAttribute
(DataInput file, ConstantPool constant_pool) Class method reads one attribute from the input data stream.static Attribute
Attribute.readAttribute
(DataInputStream file, ConstantPool constant_pool) Class method reads one attribute from the input data stream.Methods in org.apache.bcel.classfile with parameters of type AttributeModifier and TypeMethodDescriptionstatic AnnotationEntry[]
AnnotationEntry.createAnnotationEntries
(Attribute[] attrs) static ParameterAnnotationEntry[]
ParameterAnnotationEntry.createParameterAnnotationEntries
(Attribute[] attrs) void
Code.setAttributes
(Attribute[] attributes) final void
FieldOrMethod.setAttributes
(Attribute[] attributes) void
JavaClass.setAttributes
(Attribute[] attributes) Constructors in org.apache.bcel.classfile with parameters of type AttributeModifierConstructorDescriptionCode
(int name_index, int length, int max_stack, int max_locals, byte[] code, CodeException[] exception_table, Attribute[] attributes, ConstantPool constant_pool) Field
(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) protected
FieldOrMethod
(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) JavaClass
(int class_name_index, int superclass_name_index, String file_name, int major, int minor, int access_flags, ConstantPool constant_pool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes) Constructor gets all contents as arguments.JavaClass
(int class_name_index, int superclass_name_index, String file_name, int major, int minor, int access_flags, ConstantPool constant_pool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes, byte source) Constructor gets all contents as arguments.Method
(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) -
Uses of Attribute in org.apache.bcel.generic
Fields in org.apache.bcel.generic with type parameters of type AttributeModifier and TypeFieldDescriptionClassGen.attribute_vec
FieldGenOrMethodGen.attribute_vec
MethodGen.code_attrs_vec
Methods in org.apache.bcel.generic that return AttributeModifier and TypeMethodDescription(package private) static Attribute[]
AnnotationEntryGen.getAnnotationAttributes
(ConstantPoolGen cp, AnnotationEntryGen[] annotationEntryGens) Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.ClassGen.getAttributes()
FieldGenOrMethodGen.getAttributes()
MethodGen.getCodeAttributes()
(package private) static Attribute[]
AnnotationEntryGen.getParameterAnnotationAttributes
(ConstantPoolGen cp, List<AnnotationEntryGen>[] vec) Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotationsMethods in org.apache.bcel.generic with parameters of type AttributeModifier and TypeMethodDescriptionvoid
ClassGen.addAttribute
(Attribute a) Add an attribute to this class.void
FieldGenOrMethodGen.addAttribute
(Attribute a) Add an attribute to this method.void
MethodGen.addCodeAttribute
(Attribute a) Add an attribute to the code.void
ClassGen.removeAttribute
(Attribute a) Remove an attribute from this class.void
FieldGenOrMethodGen.removeAttribute
(Attribute a) Remove an attribute.void
MethodGen.removeCodeAttribute
(Attribute a) Remove a code attribute.private AnnotationEntryGen[]
ClassGen.unpackAnnotations
(Attribute[] attrs) Look for attributes representing annotations and unpack them. -
Uses of Attribute in org.apache.bcel.util
Methods in org.apache.bcel.util with parameters of type AttributeModifier and TypeMethodDescription(package private) void
AttributeHTML.writeAttribute
(Attribute attribute, String anchor) (package private) void
AttributeHTML.writeAttribute
(Attribute attribute, String anchor, int method_number)