Package com.mebigfatguy.fbcontrib.utils
Class XClassUtils
java.lang.Object
com.mebigfatguy.fbcontrib.utils.XClassUtils
Utility class for XClass and XMethod classes.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivate to enforce the helper nature of this static class -
Method Summary
Modifier and TypeMethodDescriptionstatic edu.umd.cs.findbugs.ba.XClassgetXClass(edu.umd.cs.findbugs.classfile.ClassDescriptor classDesc) Returns anXClassobject for the givenClassDescriptorobject.static edu.umd.cs.findbugs.ba.XClassReturns anXClassobject for the given slashed class name.static edu.umd.cs.findbugs.ba.XMethodgetXMethod(edu.umd.cs.findbugs.ba.XClass xClass, String methodName, String methodSig) Looks for the method up the class hierarchy.static edu.umd.cs.findbugs.ba.XMethodgetXMethod(String slashedClassName, String methodName, String methodSig) Looks for the method up the class hierarchy.
-
Constructor Details
-
XClassUtils
private XClassUtils()private to enforce the helper nature of this static class
-
-
Method Details
-
getXClass
public static edu.umd.cs.findbugs.ba.XClass getXClass(edu.umd.cs.findbugs.classfile.ClassDescriptor classDesc) throws AssertionError Returns anXClassobject for the givenClassDescriptorobject.- Parameters:
classDesc- the class descriptor for which to find the XClass object- Returns:
- the class
- Throws:
AssertionError- if the analysis of the class failed
-
getXClass
Returns anXClassobject for the given slashed class name.- Parameters:
slashedClassName- the class name for which to find the XClass object- Returns:
- the class
- Throws:
AssertionError- if the analysis of the class failed
-
getXMethod
@Nullable public static edu.umd.cs.findbugs.ba.XMethod getXMethod(edu.umd.cs.findbugs.ba.XClass xClass, String methodName, String methodSig) Looks for the method up the class hierarchy.- Parameters:
xClass- the class where to look for the methodmethodName- the name of the method to look formethodSig- the signature of the method to look for- Returns:
- the method
-
getXMethod
@Nullable public static edu.umd.cs.findbugs.ba.XMethod getXMethod(String slashedClassName, String methodName, String methodSig) Looks for the method up the class hierarchy.- Parameters:
slashedClassName- the class slashed name where to look for the methodmethodName- the name of the method to look formethodSig- the signature of the method to look for- Returns:
- the method
-