-
Interfaces Interface Description org.apache.bcel.classfile.AttributeReader UseUnknownAttributeReaderinstead.org.apache.bcel.Constants (since 6.0) DO NOT USE - useConstinstead.org.apache.bcel.ExceptionConstants (since 6.0) DO NOT USE - use ExceptionConst insteadorg.apache.bcel.generic.InstructionConstants (since 6.0) Do not use. UseInstructionConstinstead.
-
Classes Class Description org.apache.bcel.generic.InstructionConstants.Clinit Consider private.org.apache.bcel.util.ClassLoader 6.0 Do not use - does not workorg.apache.bcel.util.ClassVector as of 5.1.1 - 7/17/2005
-
Methods Method Description org.apache.bcel.classfile.Attribute.addAttributeReader(String, AttributeReader) (6.0) UseAttribute.addAttributeReader(String, UnknownAttributeReader)instead.org.apache.bcel.classfile.ConstantUtf8.setBytes(String) (since 6.0)org.apache.bcel.classfile.LocalVariableTable.getLocalVariable(int) Since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc) instead.org.apache.bcel.classfile.StackMapEntry.setNumberOfLocals(int) Since 6.0org.apache.bcel.classfile.StackMapEntry.setNumberOfStackItems(int) Since 6.0org.apache.bcel.generic.FieldOrMethod.getClassName(ConstantPoolGen) If the instruction references an array class, this method will return "java.lang.Object". For code generated by Java 1.5, this answer is sometimes wrong (for example, if the "clone()" method is called on an array). A better idea is to use theFieldOrMethod.getReferenceType(ConstantPoolGen)method, which correctly distinguishes between class types and array types.org.apache.bcel.generic.FieldOrMethod.getClassType(ConstantPoolGen) If the instruction references an array class, the ObjectType returned will be invalid. Use getReferenceType() instead.org.apache.bcel.generic.Instruction.getComparator() (6.0) use the built in comparator, or wrap this class in another object that implements these methodsorg.apache.bcel.generic.Instruction.setComparator(InstructionComparator) (6.0) use the built in comparator, or wrap this class in another object that implements these methodsorg.apache.bcel.generic.InstructionHandle.addHandle() Does nothing as of 6.3.1.org.apache.bcel.generic.ObjectType.referencesClass() (since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesClassExact() insteadorg.apache.bcel.generic.ObjectType.referencesInterface() (since 6.0) this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesInterfaceExact() insteadorg.apache.bcel.generic.ReferenceType.firstCommonSuperclass(ReferenceType) Use getFirstCommonSuperclass(ReferenceType t) which has slightly changed semantics.
-
Constructors Constructor Description org.apache.bcel.classfile.FieldOrMethod(DataInputStream, ConstantPool) (6.0) UseFieldOrMethod(java.io.DataInput, ConstantPool)instead.org.apache.bcel.classfile.StackMapEntry(int, int, StackMapType[], int, StackMapType[], ConstantPool) Since 6.0, useStackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool)instead.org.apache.bcel.util.ClassPath() Use SYSTEM_CLASS_PATH constant