Uses of Class
org.apache.bcel.classfile.Attribute
Packages that use 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
Subclasses of Attribute in org.apache.bcel.classfileModifier and TypeClassDescriptionclassRepresents the default value of an annotation for a method info.classbase class for annotationsclassThis class represents a BootstrapMethods attribute.final classThis class represents a chunk of Java byte code contained in a method.final classThis class is derived from Attribute and represents a constant value, that is, a default value for initializing a class field.final classThis class is derived from Attribute and denotes that this is a deprecated method.classThis attribute exists for local or anonymous classes and ... there can be only one.final classThis class represents the table of exceptions that are thrown by a method.final classThis class is derived from Attribute and denotes that this class is an Inner class of another. to the source file of this class.final classThis class represents a table of line numbers for debugging purposes.classThis class represents a collection of local variables in a method.classRepresents the LocalVariableTypeTable attribute.classThis class represents a MethodParameters attribute.final classThis class is derived from Attribute and represents the list of modules required, exported, opened or provided by a module.final classThis class is derived from Attribute and indicates the main class of a module.final classThis class is derived from Attribute and represents the list of packages that are exported or opened by the Module attribute.final classThis class is derived from Attribute and records the nest host of the nest to which the current class or interface claims to belong.final classThis 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.classbase class for parameter annotationsfinal classThis class is derived from Attribute and records the classes and interfaces that are permitted to extend or implement the current class or interface.final classThis class is derived from Attribute and represents a reference to a PMG attribute.final classExtendsAttributeand records the classes and interfaces that are authorized to claim membership in the nest hosted by the current class or interface.classAn annotation that is represented in the class file but is not provided to the JVM.classRepresents a parameter annotation that is represented in the class file but is not provided to the JVM.classThe type annotations of a class, field, method, record component orCodeattribute, recorded in the class file but not visible at runtime.classAn annotation that is represented in the class file and is provided to the JVM.classRepresents a parameter annotation that is represented in the class file and is provided to the JVM.classThe type annotations of a class, field, method, record component orCodeattribute, provided to the JVM and visible at runtime.final classThis class is derived from Attribute and represents a reference to a GJ attribute.final classThis class is derived from Attribute and represents a reference to the source file of this class.final classThis class represents a stack map attribute used for preverification of Java classes for the Java 2 Micro Edition (J2ME).final classThis class is derived from Attribute and declares this class as 'synthetic', that is, it needs special handling.classBase class for the type annotation attributes,RuntimeVisibleTypeAnnotationsandRuntimeInvisibleTypeAnnotations: the annotations written on the types used in a declaration (such asList<@Nullable String>, the supertypes of a class, athrowsclause, or the declaration and the bounds of a type parameter as in<T extends @Nullable Object>) or in the code of a method (such as a cast, aninstanceof, anewexpression or a local variable), which the attributes of the declaration annotations do not hold.final classThis class represents a reference to an unknown (that is, application-specific) attribute of a class.Fields in org.apache.bcel.classfile declared as AttributeModifier and TypeFieldDescriptionprotected Attribute[]FieldOrMethod.attributesDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.static final Attribute[]Attribute.EMPTY_ARRAYEmpty array.Methods in org.apache.bcel.classfile with type parameters of type AttributeModifier 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.final <T extends Attribute>
TRecordComponentInfo.getAttribute(byte tag) Gets the attribute for the given tag if present, or null if absent.Methods in org.apache.bcel.classfile that return AttributeModifier and TypeMethodDescriptionAnnotationDefault.copy(ConstantPool constantPool) Annotations.copy(ConstantPool constantPool) abstract AttributeAttribute.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Code.copy(ConstantPool constantPool) Creates a deep copy of this attribute.ConstantValue.copy(ConstantPool constantPool) Creates a deep copy of this attribute.Deprecated.copy(ConstantPool constantPool) EnclosingMethod.copy(ConstantPool constantPool) ExceptionTable.copy(ConstantPool constantPool) Creates a deep copy of this attribute.InnerClasses.copy(ConstantPool constantPool) Creates a deep copy of this attribute.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) PermittedSubclasses.copy(ConstantPool constantPool) Creates a deep clone of this object given constant pool.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.RuntimeInvisibleTypeAnnotations.copy(ConstantPool constantPool) Creates a deep copy of this attribute, whose type annotations are independent of this one's and refer to the given constant pool.RuntimeVisibleAnnotations.copy(ConstantPool constantPool) Creates a deep copy of this attribute.RuntimeVisibleTypeAnnotations.copy(ConstantPool constantPool) Creates a deep copy of this attribute, whose type annotations are independent of this one's and refer to the given constant pool.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()Gets the collection of code attributes.final Attribute[]FieldOrMethod.getAttributes()Gets the collection of object attributes.JavaClass.getAttributes()Gets attributes of the class.RecordComponentInfo.getAttributes()Gets all attributes.static AttributeAttribute.readAttribute(DataInput dataInput, ConstantPool constantPool) Reads one attribute using standard eight-byte Code headers.static AttributeAttribute.readAttribute(DataInput dataInput, ConstantPool constantPool, boolean compactCodeHeader) Reads one attribute using the selected Code header layout.static AttributeAttribute.readAttribute(DataInputStream dataInputStream, ConstantPool constantPool) Reads one attribute using standard eight-byte Code headers.Methods in org.apache.bcel.classfile with parameters of type AttributeModifier and TypeMethodDescriptionstatic AnnotationEntry[]AnnotationEntry.createAnnotationEntries(Attribute[] attributes) Creates annotation entries from attributes.static ParameterAnnotationEntry[]ParameterAnnotationEntry.createParameterAnnotationEntries(Attribute[] attributes) Creates parameter annotation entries from attributes.voidCode.setAttributes(Attribute[] attributes) Sets the attributes for this Code.final voidFieldOrMethod.setAttributes(Attribute[] attributes) Sets the collection of object attributes.voidJavaClass.setAttributes(Attribute[] attributes) Sets the attributes.Constructors in org.apache.bcel.classfile with parameters of type AttributeModifierConstructorDescriptionCode(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool) Constructs a Code attribute using a standard eight-byte header.Field(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a Field.protectedFieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool) Constructs a FieldOrMethod.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) Constructs a Method. -
Uses of Attribute in org.apache.bcel.generic
Methods in org.apache.bcel.generic that return AttributeModifier and TypeMethodDescriptionClassGen.getAttributes()Gets the attributes.FieldGenOrMethodGen.getAttributes()Gets all attributes of this method or field.MethodGen.getCodeAttributes()Gets all attributes of this method.Methods in org.apache.bcel.generic with parameters of type AttributeModifier and TypeMethodDescriptionprotected voidAdds all attributes from an array.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) Removes an attribute.voidMethodGen.removeCodeAttribute(Attribute a) Remove a code attribute.voidMethodGen.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.