public abstract class BCELUtil
extends java.lang.Object
Constructor and Description |
---|
BCELUtil() |
Modifier and Type | Method and 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 org.apache.bcel.generic.ObjectType |
getObjectTypeInstance(java.lang.Class<?> clazz) |
static org.apache.bcel.generic.ObjectType |
getObjectTypeInstance(java.lang.String className) |
static boolean |
isSynthetic(org.apache.bcel.generic.FieldGenOrMethodGen m) |
static boolean |
isSynthetic(org.apache.bcel.classfile.FieldOrMethod m) |
static boolean |
isSynthetic(org.apache.bcel.classfile.JavaClass j) |
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)
@Deprecated public static ClassDescriptor getClassDescriptor(org.apache.bcel.generic.ObjectType type)
DescriptorFactory.getClassDescriptor(ObjectType)
insteadtype
- an ObjectType@Deprecated public static void throwClassNotFoundException(ClassDescriptor classDescriptor) throws java.lang.ClassNotFoundException
ClassDescriptor.throwClassNotFoundException(ClassDescriptor)
insteadclassDescriptor
- ClassDescriptor naming a class that cannot be foundjava.lang.ClassNotFoundException
ClassNotFoundExceptionParser
public static org.apache.bcel.generic.ObjectType getObjectTypeInstance(@DottedClassName java.lang.String className)
public static org.apache.bcel.generic.ObjectType getObjectTypeInstance(java.lang.Class<?> clazz)
public static boolean isSynthetic(org.apache.bcel.classfile.FieldOrMethod m)
public static boolean isSynthetic(org.apache.bcel.classfile.JavaClass j)
public static boolean isSynthetic(org.apache.bcel.generic.FieldGenOrMethodGen m)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.