com.mebigfatguy.fbcontrib.utils
Class SignatureUtils
java.lang.Object
com.mebigfatguy.fbcontrib.utils.SignatureUtils
public class SignatureUtils
- extends java.lang.Object
Method Summary |
static java.lang.String |
getPackageName(java.lang.String className)
parses the package name from a fully qualified class name |
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 |
SignatureUtils
public SignatureUtils()
isInheritedMethod
public static boolean isInheritedMethod(org.apache.bcel.classfile.JavaClass cls,
java.lang.String methodName,
java.lang.String signature)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
getPackageName
public static java.lang.String getPackageName(java.lang.String className)
- parses the package name from a fully qualified class name
- Parameters:
className
- the class in question
- Returns:
- the package of the class
similarPackages
public 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
- Parameters:
packName1
- the first package to checkpackName2
- the second package to checkdepth
- the number of package parts to check
- Returns:
- if they are similar
getTypeCodeSignature
public static java.lang.String getTypeCodeSignature(int typeCode)
- converts a primitive type code to a signature
Copyright © 2005-2008 MeBigFatGuy.com. All Rights Reserved.