Uses of Class
org.apache.bcel.classfile.Attribute
-
Packages that use Attribute Package Description org.apache.bcel.classfile This package contains the classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic This package contains the "generic" part of the Byte Code Engineering Library, i.e., classes to dynamically modify class objects and byte code instructions.org.apache.bcel.util 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.classfile Modifier and Type Class Description class
AnnotationDefault
Represents the default value of a annotation for a method infoclass
Annotations
base class for annotationsclass
BootstrapMethods
This class represents a BootstrapMethods attribute.class
Code
This class represents a chunk of Java byte code contained in a method.class
ConstantValue
This class is derived from Attribute and represents a constant value, i.e., a default value for initializing a class field.class
Deprecated
This class is derived from Attribute and denotes that this is a deprecated method.class
EnclosingMethod
This attribute exists for local or anonymous classes and ...class
ExceptionTable
This class represents the table of exceptions that are thrown by a method.class
InnerClasses
This class is derived from Attribute and denotes that this class is an Inner class of another.class
LineNumberTable
This class represents a table of line numbers for debugging purposes.class
LocalVariableTable
This class represents colection of local variables in a method.class
LocalVariableTypeTable
class
MethodParameters
This class represents a MethodParameters attribute.class
Module
This class is derived from Attribute and represents the list of modules required, exported, opened or provided by a module.class
ModuleMainClass
This class is derived from Attribute and indicates the main class of a module.class
ModulePackages
This class is derived from Attribute and represents the list of packages that are exported or opened by the Module attribute.class
NestHost
This class is derived from Attribute and records the nest host of the nest to which the current class or interface claims to belong.class
NestMembers
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
ParameterAnnotations
base class for parameter annotationsclass
PMGClass
This class is derived from Attribute and represents a reference to a PMG attribute.class
RuntimeInvisibleAnnotations
represents an annotation that is represented in the class file but is not provided to the JVM.class
RuntimeInvisibleParameterAnnotations
Represents a parameter annotation that is represented in the class file but is not provided to the JVM.class
RuntimeVisibleAnnotations
represents an annotation that is represented in the class file and is provided to the JVM.class
RuntimeVisibleParameterAnnotations
Represents a parameter annotation that is represented in the class file and is provided to the JVM.class
Signature
This class is derived from Attribute and represents a reference to a GJ attribute.class
SourceFile
This class is derived from Attribute and represents a reference to the source file of this class.class
StackMap
This class represents a stack map attribute used for preverification of Java classes for the Java 2 Micro Edition (J2ME).class
Synthetic
This class is derived from Attribute and declares this class as `synthetic', i.e., it needs special handling.class
Unknown
This class represents a reference to an unknown (i.e., application-specific) attribute of a class.Fields in org.apache.bcel.classfile declared as Attribute Modifier and Type Field Description private 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 Attribute Modifier and Type Method Description Attribute
AnnotationDefault. copy(ConstantPool _constant_pool)
abstract Attribute
Attribute. copy(ConstantPool _constant_pool)
Attribute
Code. copy(ConstantPool _constant_pool)
Attribute
ConstantValue. copy(ConstantPool _constant_pool)
Attribute
Deprecated. copy(ConstantPool _constant_pool)
Attribute
EnclosingMethod. copy(ConstantPool constant_pool)
Attribute
ExceptionTable. copy(ConstantPool _constant_pool)
Attribute
InnerClasses. copy(ConstantPool _constant_pool)
Attribute
LineNumberTable. copy(ConstantPool _constant_pool)
Attribute
LocalVariableTable. copy(ConstantPool _constant_pool)
Attribute
LocalVariableTypeTable. copy(ConstantPool constant_pool)
Attribute
MethodParameters. copy(ConstantPool _constant_pool)
Attribute
Module. copy(ConstantPool _constant_pool)
Attribute
ModuleMainClass. copy(ConstantPool _constant_pool)
Attribute
ModulePackages. copy(ConstantPool _constant_pool)
Attribute
NestHost. copy(ConstantPool _constant_pool)
Attribute
NestMembers. copy(ConstantPool _constant_pool)
Attribute
ParameterAnnotations. copy(ConstantPool constant_pool)
Attribute
PMGClass. copy(ConstantPool _constant_pool)
Attribute
RuntimeInvisibleAnnotations. copy(ConstantPool constant_pool)
Attribute
RuntimeVisibleAnnotations. copy(ConstantPool constant_pool)
Attribute
Signature. copy(ConstantPool _constant_pool)
Attribute
SourceFile. copy(ConstantPool _constant_pool)
Attribute
StackMap. copy(ConstantPool _constant_pool)
Attribute
Synthetic. copy(ConstantPool _constant_pool)
Attribute
Unknown. copy(ConstantPool _constant_pool)
Attribute
AttributeReader. createAttribute(int name_index, int length, java.io.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.Attribute
UnknownAttributeReader. createAttribute(int name_index, int length, java.io.DataInput file, ConstantPool constant_pool)
When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.Attribute[]
Code. getAttributes()
Attribute[]
FieldOrMethod. getAttributes()
Attribute[]
JavaClass. getAttributes()
static Attribute
Attribute. readAttribute(java.io.DataInput file, ConstantPool constant_pool)
Class method reads one attribute from the input data stream.static Attribute
Attribute. readAttribute(java.io.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 Attribute Modifier and Type Method Description static AnnotationEntry[]
AnnotationEntry. createAnnotationEntries(Attribute[] attrs)
static ParameterAnnotationEntry[]
ParameterAnnotationEntry. createParameterAnnotationEntries(Attribute[] attrs)
void
Code. setAttributes(Attribute[] attributes)
void
FieldOrMethod. setAttributes(Attribute[] attributes)
void
JavaClass. setAttributes(Attribute[] attributes)
Constructors in org.apache.bcel.classfile with parameters of type Attribute Constructor Description Code(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)
FieldOrMethod(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool)
JavaClass(int class_name_index, int superclass_name_index, java.lang.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, java.lang.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 Attribute Modifier and Type Field Description private java.util.List<Attribute>
ClassGen. attribute_vec
private java.util.List<Attribute>
FieldGenOrMethodGen. attribute_vec
private java.util.List<Attribute>
MethodGen. code_attrs_vec
Methods in org.apache.bcel.generic that return Attribute Modifier and Type Method Description (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.Attribute[]
ClassGen. getAttributes()
Attribute[]
FieldGenOrMethodGen. getAttributes()
Attribute[]
MethodGen. getCodeAttributes()
(package private) static Attribute[]
AnnotationEntryGen. getParameterAnnotationAttributes(ConstantPoolGen cp, java.util.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 Attribute Modifier and Type Method Description 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.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 Attribute Modifier and Type Method Description (package private) void
AttributeHTML. writeAttribute(Attribute attribute, java.lang.String anchor)
(package private) void
AttributeHTML. writeAttribute(Attribute attribute, java.lang.String anchor, int method_number)
-