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. -
-
Uses of Attribute in org.apache.bcel.classfile
Subclasses of Attribute in org.apache.bcel.classfile Modifier and Type Class Description classAnnotationDefaultrepresents the default value of a annotation for a method infoclassAnnotationsbase class for annotationsclassCodeThis class represents a chunk of Java byte code contained in a method.classConstantValueThis class is derived from Attribute and represents a constant value, i.e., a default value for initializing a class field.classDeprecatedThis class is derived from Attribute and denotes that this is a deprecated method.classEnclosingMethodThis attribute exists for local or anonymous classes and ...classExceptionTableThis class represents the table of exceptions that are thrown by a method.classInnerClassesThis class is derived from Attribute and denotes that this class is an Inner class of another.classLineNumberTableThis class represents a table of line numbers for debugging purposes.classLocalVariableTableThis class represents colection of local variables in a method.classLocalVariableTypeTableclassParameterAnnotationsbase class for parameter annotationsclassPMGClassThis class is derived from Attribute and represents a reference to a PMG attribute.classRuntimeInvisibleAnnotationsrepresents an annotation that is represented in the class file but is not provided to the JVM.classRuntimeInvisibleParameterAnnotationsrepresents a parameter annotation that is represented in the class file but is not provided to the JVM.classRuntimeVisibleAnnotationsrepresents an annotation that is represented in the class file and is provided to the JVM.classRuntimeVisibleParameterAnnotationsrepresents a parameter annotation that is represented in the class file and is provided to the JVM.classSignatureThis class is derived from Attribute and represents a reference to a GJ attribute.classSourceFileThis class is derived from Attribute and represents a reference to the source file of this class.classStackMapThis class represents a stack map attribute used for preverification of Java classes for the Java 2 Micro Edition (J2ME).classSyntheticThis class is derived from Attribute and declares this class as `synthetic', i.e., it needs special handling.classUnknownThis 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 protected Attribute[]FieldOrMethod. attributesMethods in org.apache.bcel.classfile that return Attribute Modifier and Type Method Description AttributeAnnotationDefault. copy(ConstantPool _constant_pool)abstract AttributeAttribute. copy(ConstantPool _constant_pool)AttributeCode. copy(ConstantPool _constant_pool)AttributeConstantValue. copy(ConstantPool _constant_pool)AttributeDeprecated. copy(ConstantPool _constant_pool)AttributeEnclosingMethod. copy(ConstantPool constant_pool)AttributeExceptionTable. copy(ConstantPool _constant_pool)AttributeInnerClasses. copy(ConstantPool _constant_pool)AttributeLineNumberTable. copy(ConstantPool _constant_pool)AttributeLocalVariableTable. copy(ConstantPool _constant_pool)AttributeLocalVariableTypeTable. copy(ConstantPool constant_pool)AttributePMGClass. copy(ConstantPool _constant_pool)AttributeRuntimeInvisibleAnnotations. copy(ConstantPool constant_pool)AttributeRuntimeInvisibleParameterAnnotations. copy(ConstantPool constant_pool)AttributeRuntimeVisibleAnnotations. copy(ConstantPool constant_pool)AttributeRuntimeVisibleParameterAnnotations. copy(ConstantPool constant_pool)AttributeSignature. copy(ConstantPool _constant_pool)AttributeSourceFile. copy(ConstantPool _constant_pool)AttributeStackMap. copy(ConstantPool _constant_pool)AttributeSynthetic. copy(ConstantPool _constant_pool)AttributeUnknown. copy(ConstantPool _constant_pool)AttributeAttributeReader. createAttribute(int name_index, int length, java.io.DataInputStream file, ConstantPool constant_pool)When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.static Attribute[]Utility. getAnnotationAttributes(ConstantPoolGen cp, java.util.List vec)Converts a list of AnnotationGen objects into a set of attributes that can be attached to the class file.Attribute[]Code. getAttributes()Attribute[]FieldOrMethod. getAttributes()Attribute[]JavaClass. getAttributes()static Attribute[]Utility. getParameterAnnotationAttributes(ConstantPoolGen cp, java.util.List[] vec)Annotations against a class are stored in one of four attribute kinds: - RuntimeVisibleParameterAnnotations - RuntimeInvisibleParameterAnnotationsstatic AttributeAttribute. readAttribute(java.io.DataInputStream file, ConstantPool constant_pool)Methods in org.apache.bcel.classfile with parameters of type Attribute Modifier and Type Method Description voidCode. setAttributes(Attribute[] attributes)voidFieldOrMethod. setAttributes(Attribute[] attributes)voidJavaClass. 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
Methods in org.apache.bcel.generic that return Attribute Modifier and Type Method Description Attribute[]ClassGen. getAttributes()Attribute[]FieldGenOrMethodGen. getAttributes()Attribute[]MethodGen. getCodeAttributes()Methods in org.apache.bcel.generic with parameters of type Attribute Modifier and Type Method Description voidClassGen. addAttribute(Attribute a)Add an attribute to this class.voidFieldGenOrMethodGen. addAttribute(Attribute a)Add an attribute to this method.voidMethodGen. addCodeAttribute(Attribute a)Add an attribute to the code.voidClassGen. removeAttribute(Attribute a)Remove an attribute from this class.voidFieldGenOrMethodGen. removeAttribute(Attribute a)Remove an attribute.voidMethodGen. removeCodeAttribute(Attribute a)Remove a code attribute.
-