public abstract class BCELUtil
extends java.lang.Object
Constructor and Description |
---|
BCELUtil() |
Modifier and Type | Method and Description |
---|---|
static ClassDescriptor |
getClassDescriptor(org.apache.bcel.classfile.JavaClass jclass)
Construct a ClassDescriptor from a JavaClass.
|
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.String className) |
static boolean |
isSynthetic(org.apache.bcel.generic.FieldGenOrMethodGen m) |
static boolean |
isSynthetic(org.apache.bcel.classfile.FieldOrMethod m)
Deprecated.
You probably don't care for synthetic members, but want to
know if the developer added it (think of lambdas), use
MemberUtils.isUserGenerated(FieldOrMethod) instead |
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
|
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 ClassDescriptor getClassDescriptor(org.apache.bcel.classfile.JavaClass jclass)
jclass
- a JavaClasspublic static boolean preTiger(org.apache.bcel.classfile.JavaClass jclass)
public static org.apache.bcel.generic.ObjectType getObjectTypeInstance(@DottedClassName java.lang.String className)
@Deprecated public static boolean isSynthetic(org.apache.bcel.classfile.FieldOrMethod m)
MemberUtils.isUserGenerated(FieldOrMethod)
insteadm
- The member to be checkedpublic static boolean isSynthetic(org.apache.bcel.classfile.JavaClass j)
public static boolean isSynthetic(org.apache.bcel.generic.FieldGenOrMethodGen m)
SpotBugs is licensed under the LGPL.