edu.umd.cs.findbugs.classfile
public class ClassDescriptor extends Object implements Comparable<ClassDescriptor>, Serializable
Constructor Summary | |
---|---|
ClassDescriptor(String className)
Constructor.
|
Method Summary | |
---|---|
int | compareTo(ClassDescriptor o) |
static ClassDescriptor | fromResourceName(String resourceName)
Create a class descriptor from a resource name.
|
String | getClassName() |
static boolean | isClassResource(String resourceName)
Determine whether or not the given resource name refers to a class.
|
String | toDottedClassName()
Get the name of the class in dotted format.
|
String | toResourceName()
Get the resource name of this class as it would appear in the classpath.
|
Parameters: className class name in VM format, e.g. "java/lang/String"
Parameters: resourceName the resource name
Returns: the class descriptor
Returns: Returns the class name in VM format, e.g. "java/lang/String"
Parameters: resourceName the resource name
Returns: true if the resource is a class, false otherwise
Returns: the name of the class in dotted format
Returns: the resource name