Uses of Class
org.apache.bcel.classfile.Attribute
Package
Description
Classes that describe the structure of a Java class file and a class file parser.
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects
and byte code instructions.
-
Uses of Attribute in org.apache.bcel.classfile
Modifier and TypeClassDescriptionclass
Represents the default value of a annotation for a method info.class
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.final class
ExtendsAttribute
and records the classes and interfaces that are authorized to claim membership in the nest hosted by the current class or interface.class
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
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.Modifier and TypeFieldDescriptionprotected Attribute[]
FieldOrMethod.attributes
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterstatic final Attribute[]
Attribute.EMPTY_ARRAY
Empty array.Modifier and TypeMethodDescriptionfinal <T extends Attribute>
TFieldOrMethod.getAttribute
(byte tag) Gets attribute for given tag.final <T extends Attribute>
TJavaClass.getAttribute
(byte tag) Gets attribute for given tag.Modifier and TypeMethodDescriptionAnnotationDefault.copy
(ConstantPool constantPool) Annotations.copy
(ConstantPool constantPool) abstract Attribute
Attribute.copy
(ConstantPool constantPool) Code.copy
(ConstantPool constantPool) ConstantValue.copy
(ConstantPool constantPool) Deprecated.copy
(ConstantPool constantPool) EnclosingMethod.copy
(ConstantPool constantPool) ExceptionTable.copy
(ConstantPool constantPool) InnerClasses.copy
(ConstantPool constantPool) LineNumberTable.copy
(ConstantPool constantPool) LocalVariableTable.copy
(ConstantPool constantPool) LocalVariableTypeTable.copy
(ConstantPool constantPool) MethodParameters.copy
(ConstantPool constantPool) Module.copy
(ConstantPool constantPool) ModuleMainClass.copy
(ConstantPool constantPool) ModulePackages.copy
(ConstantPool constantPool) NestHost.copy
(ConstantPool constantPool) NestMembers.copy
(ConstantPool constantPool) ParameterAnnotations.copy
(ConstantPool constantPool) PMGClass.copy
(ConstantPool constantPool) Record.copy
(ConstantPool constantPool) Copies this instance and its components.RuntimeInvisibleAnnotations.copy
(ConstantPool constantPool) Creates a deep copy of this attribute.RuntimeVisibleAnnotations.copy
(ConstantPool constantPool) Creates a deep copy of this attribute.Signature.copy
(ConstantPool constantPool) SourceFile.copy
(ConstantPool constantPool) StackMap.copy
(ConstantPool constantPool) Synthetic.copy
(ConstantPool constantPool) Unknown.copy
(ConstantPool constantPool) AttributeReader.createAttribute
(int nameIndex, int length, DataInputStream file, ConstantPool constantPool) Deprecated.When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.UnknownAttributeReader.createAttribute
(int nameIndex, int length, DataInput file, ConstantPool constantPool) 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()
RecordComponentInfo.getAttributes()
Gets all attributes.static Attribute
Attribute.readAttribute
(DataInput dataInput, ConstantPool constantPool) Class method reads one attribute from the input data stream.static Attribute
Attribute.readAttribute
(DataInputStream dataInputStream, ConstantPool constantPool) Class method reads one attribute from the input data stream.Modifier and TypeMethodDescriptionstatic AnnotationEntry[]
AnnotationEntry.createAnnotationEntries
(Attribute[] attributes) static ParameterAnnotationEntry[]
ParameterAnnotationEntry.createParameterAnnotationEntries
(Attribute[] attributes) void
Code.setAttributes
(Attribute[] attributes) final void
FieldOrMethod.setAttributes
(Attribute[] attributes) void
JavaClass.setAttributes
(Attribute[] attributes) ModifierConstructorDescriptionCode
(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool) Field
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) protected
FieldOrMethod
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) JavaClass
(int classNameIndex, int superclassNameIndex, String fileName, int major, int minor, int accessFlags, ConstantPool constantPool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes) Constructor gets all contents as arguments.JavaClass
(int classNameIndex, int superclassNameIndex, String fileName, int major, int minor, int accessFlags, ConstantPool constantPool, int[] interfaces, Field[] fields, Method[] methods, Attribute[] attributes, byte source) Constructor gets all contents as arguments.Method
(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) -
Uses of Attribute in org.apache.bcel.generic
Modifier and TypeMethodDescriptionClassGen.getAttributes()
FieldGenOrMethodGen.getAttributes()
MethodGen.getCodeAttributes()
Modifier and TypeMethodDescriptionprotected void
void
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.void
MethodGen.removeRuntimeAttributes
(Attribute[] attributes) Would prefer to make this private, but need a way to test if client is using BCEL version 6.5.0 or later that contains fix for BCEL-329.