|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mebigfatguy.fbcontrib.utils.SignatureUtils
public class SignatureUtils
| Constructor Summary | |
|---|---|
SignatureUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getPackageName(java.lang.String className)
parses the package name from a fully qualified class name |
static java.util.Map<java.lang.Integer,java.lang.String> |
getParameterSignatures(org.apache.bcel.classfile.Method m)
returns a Map that represents the type of the parameter in slot x |
static java.lang.String |
getTypeCodeSignature(int typeCode)
converts a primitive type code to a signature |
static boolean |
isInheritedMethod(org.apache.bcel.classfile.JavaClass cls,
java.lang.String methodName,
java.lang.String signature)
|
static boolean |
similarPackages(java.lang.String packName1,
java.lang.String packName2,
int depth)
returns whether or not the two packages have the same first 'depth' parts, if they exist |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SignatureUtils()
| Method Detail |
|---|
public static boolean isInheritedMethod(org.apache.bcel.classfile.JavaClass cls,
java.lang.String methodName,
java.lang.String signature)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic static java.lang.String getPackageName(java.lang.String className)
className - the class in question
public static boolean similarPackages(java.lang.String packName1,
java.lang.String packName2,
int depth)
packName1 - the first package to checkpackName2 - the second package to checkdepth - the number of package parts to check
public static java.lang.String getTypeCodeSignature(int typeCode)
public static java.util.Map<java.lang.Integer,java.lang.String> getParameterSignatures(org.apache.bcel.classfile.Method m)
m - the method for which you want the parameters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||