public abstract class BCELUtil
extends java.lang.Object
Constructor | Description |
---|---|
BCELUtil() |
Modifier and Type | Method | Description |
---|---|---|
static FieldDescriptor |
getAccessedFieldDescriptor(org.apache.bcel.generic.FieldInstruction fins,
org.apache.bcel.generic.ConstantPoolGen cpg) |
Get FieldDescriptor describing the field accessed by given FieldInstruction.
|
static MethodDescriptor |
getCalledMethodDescriptor(org.apache.bcel.generic.InvokeInstruction inv,
org.apache.bcel.generic.ConstantPoolGen cpg) |
Get a MethodDescriptor describing the method called by
given InvokeInstruction.
|
static ClassDescriptor |
getClassDescriptor(org.apache.bcel.classfile.JavaClass jclass) |
Construct a ClassDescriptor from a JavaClass.
|
static ClassDescriptor |
getClassDescriptor(org.apache.bcel.generic.ObjectType type) |
Deprecated.
Use
DescriptorFactory.getClassDescriptor(ObjectType) instead |
static MethodDescriptor |
getMethodDescriptor(org.apache.bcel.classfile.JavaClass jclass,
org.apache.bcel.classfile.Method method) |
Construct a MethodDescriptor from JavaClass and method.
|
static boolean |
preTiger(org.apache.bcel.classfile.JavaClass jclass) |
Checks if classfile was compiled for pre 1.5 target
|
static void |
throwClassNotFoundException(ClassDescriptor classDescriptor) |
Deprecated.
|
public static MethodDescriptor getMethodDescriptor(org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method)
jclass
- a JavaClassmethod
- a Method belonging to the JavaClasspublic static MethodDescriptor getCalledMethodDescriptor(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg)
inv
- the InvokeInstructioncpg
- ConstantPoolGen of class containing instructionpublic static FieldDescriptor getAccessedFieldDescriptor(org.apache.bcel.generic.FieldInstruction fins, org.apache.bcel.generic.ConstantPoolGen cpg)
fins
- a FieldInstructioncpg
- ConstantPoolGen for the method containing the FieldInstructionpublic static ClassDescriptor getClassDescriptor(org.apache.bcel.classfile.JavaClass jclass)
jclass
- a JavaClasspublic static boolean preTiger(org.apache.bcel.classfile.JavaClass jclass)
public static ClassDescriptor getClassDescriptor(org.apache.bcel.generic.ObjectType type)
DescriptorFactory.getClassDescriptor(ObjectType)
insteadtype
- an ObjectTypepublic static void throwClassNotFoundException(ClassDescriptor classDescriptor) throws java.lang.ClassNotFoundException
ClassDescriptor.throwClassNotFoundException(ClassDescriptor)
insteadclassDescriptor
- ClassDescriptor naming a class that cannot be foundjava.lang.ClassNotFoundException
ClassNotFoundExceptionParser
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.