public class SignatureUtils
extends java.lang.Object
| Constructor and Description |
|---|
SignatureUtils() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 questionpublic 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 checkpublic 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 parametersCopyright © 2005-2010 MeBigFatGuy.com. All Rights Reserved.