|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.bcel.BCELUtil
public abstract class BCELUtil
Utility methods for detectors and analyses using BCEL.
Constructor Summary | |
---|---|
BCELUtil()
|
Method Summary | |
---|---|
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. Use ClassDescriptor.throwClassNotFoundException(ClassDescriptor) instead |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BCELUtil()
Method Detail |
---|
public static MethodDescriptor getMethodDescriptor(org.apache.bcel.classfile.JavaClass jclass, org.apache.bcel.classfile.Method method)
jclass
- a JavaClassmethod
- a Method belonging to the JavaClass
public static MethodDescriptor getCalledMethodDescriptor(org.apache.bcel.generic.InvokeInstruction inv, org.apache.bcel.generic.ConstantPoolGen cpg)
inv
- the InvokeInstructioncpg
- ConstantPoolGen of class containing instruction
public static FieldDescriptor getAccessedFieldDescriptor(org.apache.bcel.generic.FieldInstruction fins, org.apache.bcel.generic.ConstantPoolGen cpg)
fins
- a FieldInstructioncpg
- ConstantPoolGen for the method containing the FieldInstruction
public static ClassDescriptor getClassDescriptor(org.apache.bcel.classfile.JavaClass jclass)
jclass
- a JavaClass
public static boolean preTiger(org.apache.bcel.classfile.JavaClass jclass)
public static ClassDescriptor getClassDescriptor(org.apache.bcel.generic.ObjectType type)
DescriptorFactory.getClassDescriptor(ObjectType)
instead
type
- an ObjectType
public static void throwClassNotFoundException(ClassDescriptor classDescriptor) throws java.lang.ClassNotFoundException
ClassDescriptor.throwClassNotFoundException(ClassDescriptor)
instead
classDescriptor
- ClassDescriptor naming a class that cannot be found
java.lang.ClassNotFoundException
ClassNotFoundExceptionParser
|
FindBugs™ 1.3.9 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |