Top Deprecated
Apache Commons BCEL 6.8.2

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description
org.apache.bcel.Constants

(since 6.0) DO NOT USE - use Const instead.

org.apache.bcel.ExceptionConstants

(since 6.0) DO NOT USE - use ExceptionConst instead

org.apache.bcel.ExceptionConstants.EXCS_CLASS_AND_INTERFACE_RESOLUTION

Do not use these arrays, use the static methods in the ExceptionConst implementation class instead

org.apache.bcel.classfile.AccessFlags.access_flags

(since 6.0) will be made private; do not access directly, use getter/setter.

org.apache.bcel.classfile.Attribute.addAttributeReader(final String
the name of the attribute as stored in the class file
name
,
final AttributeReader
the reader object
attributeReader
)

(6.0) Use addAttributeReader(String, UnknownAttributeReader) instead

org.apache.bcel.classfile.Attribute.constant_pool

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.Attribute.length

(since 6.0) (since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.Attribute.name_index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.Attribute.tag

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.AttributeReader

Use UnknownAttributeReader instead

org.apache.bcel.classfile.Code.Code(final int
Index pointing to the name Code
nameIndex
,
final int
Content length in bytes
length
,
final int
Maximum size of stack
maxStack
,
final int
Number of local variables
maxLocals
,
final byte[]
Actual byte code
code
,
final CodeException[]
of handled exceptions
exceptionTable
,
final Attribute[]
Attributes of code: LineNumber or LocalVariable
attributes
,
final ConstantPool
Array of constants
constantPool
)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.Code.exceptionTable

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

Returns:

Table of handled exceptions.
org.apache.bcel.classfile.Code.getExceptionTable
()

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.Code.setExceptionTable(final CodeException[]
exception table
exceptionTable
)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.CodeException

Deprecated as a consequence of Constants being deprecated.

org.apache.bcel.classfile.CodeException.CodeException(final CodeException
Source for copying.
c
)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.CodeException.EMPTY_CODE_EXCEPTION_ARRAY

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

Returns:

deep copy of this object
org.apache.bcel.classfile.CodeException.copy
()

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.Constant.tag

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.ConstantCP.class_index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.ConstantCP.name_and_type_index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.ConstantUtf8.setBytes(final String
the raw bytes of this UTF-8
bytes
)

(since 6.0)

org.apache.bcel.classfile.DescendingVisitor.visitCodeException(final CodeException ce)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.DescendingVisitor.visitLocalVariable(final LocalVariable var)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.ElementValue.cpool

(since 6.0) will be made private and final; do not access directly, use getter

org.apache.bcel.classfile.ElementValue.type

(since 6.0) will be made private and final; do not access directly, use getter

org.apache.bcel.classfile.EmptyVisitor.visitCodeException(final CodeException obj)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.EmptyVisitor.visitLocalVariable(final LocalVariable obj)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.FieldOrMethod.attributes

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.FieldOrMethod.attributes_count

(since 6.0) will be removed (not needed)

org.apache.bcel.classfile.FieldOrMethod.constant_pool

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.FieldOrMethod.name_index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.FieldOrMethod.signature_index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.classfile.LocalVariable

Deprecated as a consequence of Constants being deprecated.

org.apache.bcel.classfile.LocalVariable.EMPTY_ARRAY

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariable.LocalVariable(final LocalVariable
Another LocalVariable.
localVariable
)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

Returns:

deep copy of this object
org.apache.bcel.classfile.LocalVariable.copy
()

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTable.LocalVariableTable(final int
Index in constant pool to 'LocalVariableTable'
nameIndex
,
final int
Content length in bytes
length
,
final LocalVariable[]
Table of local variables
localVariableTable
,
final ConstantPool
Array of constants
constantPool
)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

Returns:

the first LocalVariable that matches the slot or null if not found
org.apache.bcel.classfile.LocalVariableTable.getLocalVariable
(final int
the variable slot
index
)

since 5.2 because multiple variables can share the same slot, use getLocalVariable(int index, int pc) instead.

Returns:

the LocalVariable that matches or null if not found
org.apache.bcel.classfile.LocalVariableTable.getLocalVariable
(final int
the variable slot
index
,
final int
the current pc that this variable is alive
pc
)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

Returns:

Array of local variables of method.
org.apache.bcel.classfile.LocalVariableTable.getLocalVariableTable
()

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTable.localVariableTable

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTable.setLocalVariableTable(final LocalVariable[] localVariableTable)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTypeTable.LocalVariableTypeTable(final int nameIndex, final int length, final LocalVariable[] localVariableTypeTable, final ConstantPool constantPool)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTypeTable.getLocalVariable(final int index)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTypeTable.getLocalVariableTypeTable()

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTypeTable.localVariableTypeTable

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.LocalVariableTypeTable.setLocalVariableTable(final LocalVariable[] localVariableTable)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.StackMapEntry.StackMapEntry(final int byteCodeOffset, final int
NOT USED
numberOfLocals
,
final StackMapType[]
array of StackMapTypes of locals
typesOfLocals
,
final int
NOT USED
numberOfStackItems
,
final StackMapType[]
array ot StackMapTypes of stack items
typesOfStackItems
,
final ConstantPool
the constant pool
constantPool
)

Since 6.0, use StackMapEntry(int, int, StackMapType[], StackMapType[], ConstantPool) instead

org.apache.bcel.classfile.Visitor.visitCodeException(CodeException obj)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.classfile.Visitor.visitLocalVariable(LocalVariable obj)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.generic.BranchInstruction.index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.BranchInstruction.position

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.BranchInstruction.target

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.CPInstruction.index

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.CodeExceptionGen.getCodeException(final ConstantPoolGen
constant pool
cp
)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.generic.ConstantPoolGen.constants

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.ConstantPoolGen.index

(since 6.0) will be made private; do not access directly, use getSize()

org.apache.bcel.generic.ConstantPoolGen.size

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.ElementValueGen.cpGen

(since 6.0) will be made private and final; do not access directly, use getter

org.apache.bcel.generic.ElementValueGen.type

(since 6.0) will be made private and final; do not access directly, use getter

org.apache.bcel.generic.FieldGenOrMethodGen.cp

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.FieldGenOrMethodGen.name

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.FieldGenOrMethodGen.type

(since 6.0) will be made private; do not access directly, use getter/setter

Returns:

name of the referenced class/interface
org.apache.bcel.generic.FieldOrMethod.getClassName
(final ConstantPoolGen cpg)

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 (e.g., if the "clone()" method is called on an array). A better idea is to use the getReferenceType(ConstantPoolGen) method, which correctly distinguishes between class types and array types.

Returns:

type of the referenced class/interface
org.apache.bcel.generic.FieldOrMethod.getClassType
(final ConstantPoolGen cpg)

If the instruction references an array class, the ObjectType returned will be invalid. Use getReferenceType() instead.

Returns:

currently used comparator for equals()
org.apache.bcel.generic.Instruction.getComparator
()

(6.0) use the built in comparator, or wrap this class in another object that implements these methods

org.apache.bcel.generic.Instruction.length

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Instruction.opcode

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Instruction.setComparator(final InstructionComparator c)

(6.0) use the built in comparator, or wrap this class in another object that implements these methods

org.apache.bcel.generic.InstructionFactory

Deprecated as a consequence of InstructionConstants being deprecated.

org.apache.bcel.generic.InstructionFactory.cg

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.InstructionFactory.cp

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.InstructionHandle.i_position

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.LocalVariableGen.getLocalVariable(final ConstantPoolGen
constant pool
cp
)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.generic.LocalVariableInstruction.n

(since 6.0) will be made private; do not access directly, use getter/setter

Returns:

code exceptions for 'Code' attribute
org.apache.bcel.generic.MethodGen.getCodeExceptions
()

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

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() instead

org.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() instead

org.apache.bcel.generic.PUSH

Deprecated as a consequence of InstructionConstants being deprecated.

org.apache.bcel.generic.ReferenceType.firstCommonSuperclass(final ReferenceType t)

use getFirstCommonSuperclass(ReferenceType t) which has slightly changed semantics.

org.apache.bcel.generic.Select.fixed_length

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Select.indices

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Select.match

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Select.match_length

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Select.padding

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Select.targets

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Type.signature

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.generic.Type.type

(since 6.0) will be made private; do not access directly, use getter/setter

org.apache.bcel.util.Class2HTML

Deprecated as a consequence of Constants being deprecated.

org.apache.bcel.util.ClassLoader

6.0 Do not use - does not work

org.apache.bcel.util.ClassPath.ClassPath()

Use SYSTEM_CLASS_PATH constant

org.apache.bcel.util.ClassQueue.vec

(since 6.0) will be made private; do not access

org.apache.bcel.util.ClassVector

as of 5.1.1 - 7/17/2005

org.apache.bcel.verifier.Verifier.p2v

Deprecated as a consequence of Pass2Verifier being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.statics.Pass2Verifier

Deprecated as a consequence of Constants being deprecated.

org.apache.bcel.verifier.statics.Pass2Verifier.CPESSC_Visitor.visitCodeException(final CodeException obj)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.statics.Pass2Verifier.CPESSC_Visitor.visitLocalVariable(final LocalVariable obj)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.statics.StringRepresentation.visitCodeException(final CodeException obj)

Deprecated as a consequence of CodeException being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.statics.StringRepresentation.visitLocalVariable(final LocalVariable obj)

Deprecated as a consequence of LocalVariable being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.structurals.Frame._this

Use the getter/setter to access the field as it may be made private in a later release

Returns:

the _this
org.apache.bcel.verifier.structurals.Frame.getThis
()

Deprecated as a consequence of UninitializedObjectType being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.structurals.Frame.setThis(final UninitializedObjectType
the _this to set
_this
)

Deprecated as a consequence of UninitializedObjectType being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.structurals.LocalVariables.initializeObject(final UninitializedObjectType
the object to match.
uninitializedObjectType
)

Deprecated as a consequence of UninitializedObjectType being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.structurals.OperandStack.initializeObject(final UninitializedObjectType u)

Deprecated as a consequence of UninitializedObjectType being deprecated. See corresponding docs for further information.

org.apache.bcel.verifier.structurals.UninitializedObjectType

Deprecated as a consequence of Constants being deprecated.