Uses of Class
org.apache.bcel.classfile.Attribute
-
Packages that use Attribute Package Description org.apache.bcel.classfile Classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.org.apache.bcel.util Utility classes for the Apache Byte Code Engineering Library (BCEL), namely: Collection classes for JavaClass objects A converter for class files to HTML A tool to find instructions patterns via regular expressions A class to find classes as defined in the CLASSPATH A class loader that allows to create classes at run time -
-
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 info.classAnnotationsbase class for annotationsclassBootstrapMethodsThis class represents a BootstrapMethods attribute.classCodeThis class represents a chunk of Java byte code contained in a method.classConstantValueThis class is derived from Attribute and represents a constant value, that is, 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.classLocalVariableTypeTableRepresents the LocalVariableTypeTable attribute.classMethodParametersThis class represents a MethodParameters attribute.classModuleThis class is derived from Attribute and represents the list of modules required, exported, opened or provided by a module.classModuleMainClassThis class is derived from Attribute and indicates the main class of a module.classModulePackagesThis class is derived from Attribute and represents the list of packages that are exported or opened by the Module attribute.classNestHostThis class is derived from Attribute and records the nest host of the nest to which the current class or interface claims to belong.classNestMembersThis 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.classParameterAnnotationsbase class for parameter annotationsclassPMGClassThis class is derived from Attribute and represents a reference to a PMG attribute.classRecordExtendsAttributeand records the classes and interfaces that are authorized to claim membership in the nest hosted by the current class or interface.classRuntimeInvisibleAnnotationsAn 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.classRuntimeVisibleAnnotationsAn 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', that is, it needs special handling.classUnknownThis class represents a reference to an unknown (that is, application-specific) attribute of a class.Fields in org.apache.bcel.classfile declared as Attribute Modifier and Type Field Description private Attribute[]ClassParser. attributesprivate Attribute[]Code. attributesprotected Attribute[]FieldOrMethod. attributesDeprecated.(since 6.0) will be made private; do not access directly, use getter/setter.private Attribute[]JavaClass. attributesprivate Attribute[]RecordComponentInfo. attributesstatic Attribute[]Attribute. EMPTY_ARRAYEmpty array.Methods in org.apache.bcel.classfile with type parameters of type Attribute Modifier and Type Method Description <T extends Attribute>
TFieldOrMethod. getAttribute(byte tag)Gets attribute for given tag.<T extends Attribute>
TJavaClass. getAttribute(byte tag)Gets attribute for given tag.Methods in org.apache.bcel.classfile that return Attribute Modifier and Type Method Description AttributeAnnotationDefault. copy(ConstantPool constantPool)AttributeAnnotations. copy(ConstantPool constantPool)abstract AttributeAttribute. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeCode. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeConstantValue. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeDeprecated. copy(ConstantPool constantPool)AttributeEnclosingMethod. copy(ConstantPool constantPool)AttributeExceptionTable. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeInnerClasses. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeLineNumberTable. copy(ConstantPool constantPool)AttributeLocalVariableTable. copy(ConstantPool constantPool)AttributeLocalVariableTypeTable. copy(ConstantPool constantPool)AttributeMethodParameters. copy(ConstantPool constantPool)AttributeModule. copy(ConstantPool constantPool)AttributeModuleMainClass. copy(ConstantPool constantPool)AttributeModulePackages. copy(ConstantPool constantPool)AttributeNestHost. copy(ConstantPool constantPool)AttributeNestMembers. copy(ConstantPool constantPool)AttributeParameterAnnotations. copy(ConstantPool constantPool)AttributePMGClass. copy(ConstantPool constantPool)AttributeRecord. copy(ConstantPool constantPool)Copies this instance and its components.AttributeRuntimeInvisibleAnnotations. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeRuntimeVisibleAnnotations. copy(ConstantPool constantPool)Creates a deep copy of this attribute.AttributeSignature. copy(ConstantPool constantPool)AttributeSourceFile. copy(ConstantPool constantPool)AttributeStackMap. copy(ConstantPool constantPool)AttributeSynthetic. copy(ConstantPool constantPool)AttributeUnknown. copy(ConstantPool constantPool)AttributeAttributeReader. createAttribute(int nameIndex, int length, java.io.DataInputStream file, ConstantPool constantPool)Deprecated.When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.AttributeUnknownAttributeReader. createAttribute(int nameIndex, int length, java.io.DataInput file, ConstantPool constantPool)When this attribute reader is added via the static method Attribute.addAttributeReader, an attribute name is associated with it.Attribute[]Code. getAttributes()Gets the collection of code attributes.Attribute[]FieldOrMethod. getAttributes()Gets the collection of object attributes.Attribute[]JavaClass. getAttributes()Gets attributes of the class.Attribute[]RecordComponentInfo. getAttributes()Gets all attributes.static AttributeAttribute. readAttribute(java.io.DataInput dataInput, ConstantPool constantPool)Class method reads one attribute from the input data stream.static AttributeAttribute. readAttribute(java.io.DataInputStream dataInputStream, ConstantPool constantPool)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[] attributes)Creates annotation entries from attributes.static ParameterAnnotationEntry[]ParameterAnnotationEntry. createParameterAnnotationEntries(Attribute[] attributes)voidCode. setAttributes(Attribute[] attributes)Sets the attributes for this Code.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 Attribute Constructor Description Code(int nameIndex, int length, int maxStack, int maxLocals, byte[] code, CodeException[] exceptionTable, Attribute[] attributes, ConstantPool constantPool)Constructs a Code attribute.Field(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)Constructs a Field.FieldOrMethod(int accessFlags, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool constantPool)Constructs a FieldOrMethod.JavaClass(int classNameIndex, int superclassNameIndex, java.lang.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, java.lang.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
Fields in org.apache.bcel.generic with type parameters of type Attribute Modifier and Type Field Description private java.util.List<Attribute>ClassGen. attributeListprivate java.util.List<Attribute>FieldGenOrMethodGen. attributeListprivate java.util.List<Attribute>MethodGen. codeAttrsListMethods in org.apache.bcel.generic that return Attribute Modifier and Type Method Description private Attribute[]MethodGen. addRuntimeAnnotationsAsAttribute(ConstantPoolGen cp)private Attribute[]MethodGen. addRuntimeParameterAnnotationsAsAttribute(ConstantPoolGen cp)(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()Gets the attributes.Attribute[]FieldGenOrMethodGen. getAttributes()Gets all attributes of this method or field.Attribute[]MethodGen. getCodeAttributes()Gets all attributes of this method.(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 protected voidFieldGenOrMethodGen. addAll(Attribute[] attributes)Adds 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.private AnnotationEntryGen[]ClassGen. unpackAnnotations(Attribute[] attributes)Unpacks attributes representing annotations. -
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) voidAttributeHTML. writeAttribute(Attribute attribute, java.lang.String anchor)(package private) voidAttributeHTML. writeAttribute(Attribute attribute, java.lang.String anchor, int methodNumber)
-