public class ClassDescriptor extends Object implements Comparable<ClassDescriptor>, Serializable
Modifier and Type | Field and Description |
---|---|
static ClassDescriptor[] |
EMPTY_ARRAY |
Modifier | Constructor and Description |
---|---|
protected |
ClassDescriptor(String className)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ClassDescriptor o) |
static ClassDescriptor |
createClassDescriptor(org.apache.bcel.classfile.JavaClass c)
Deprecated.
|
static ClassDescriptor |
createClassDescriptor(String className)
Deprecated.
Use
DescriptorFactory.createClassDescriptor(String)
instead |
static ClassDescriptor[] |
createClassDescriptor(String[] classNames)
Deprecated.
|
static ClassDescriptor |
createClassDescriptorFromDottedClassName(String dottedClassName)
Deprecated.
|
static ClassDescriptor |
createClassDescriptorFromSignature(String signature)
Deprecated.
|
boolean |
equals(Object obj) |
static ClassDescriptor |
fromFieldSignature(String signature)
Deprecated.
|
static ClassDescriptor |
fromResourceName(String resourceName)
Deprecated.
|
String |
getClassName() |
String |
getDottedClassName()
Get the name of the class in dotted format.
|
String |
getPackageName()
Get the name of the package in dotted format.
|
String |
getSignature() |
String |
getSimpleName()
Get the simple name of the class
|
XClass |
getXClass() |
int |
hashCode() |
boolean |
isAnonymousClass() |
boolean |
isArray() |
static boolean |
isClassResource(String resourceName)
Deprecated.
Use
DescriptorFactory.isClassResource(String) instead |
boolean |
matches(Class<?> c) |
static void |
throwClassNotFoundException(ClassDescriptor classDescriptor)
Throw a ClassNotFoundException to indicate that class named by given
ClassDescriptor cannot be found.
|
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.
|
String |
toString() |
public static final ClassDescriptor[] EMPTY_ARRAY
protected ClassDescriptor(@SlashedClassName String className)
className
- class name in VM format, e.g. "java/lang/String"@SlashedClassName public final String getClassName()
public int compareTo(ClassDescriptor o)
compareTo
in interface Comparable<ClassDescriptor>
public boolean matches(Class<?> c)
public String toResourceName()
@DottedClassName public String toDottedClassName()
@DottedClassName public String getDottedClassName()
public XClass getXClass() throws CheckedAnalysisException
CheckedAnalysisException
@DottedClassName public String getPackageName()
public String getSimpleName()
public String getSignature()
public boolean isArray()
@Deprecated public static ClassDescriptor fromResourceName(String resourceName)
DescriptorFactory.createClassDescriptorFromResourceName(String)
insteadresourceName
- the resource name@Deprecated @CheckForNull public static ClassDescriptor fromFieldSignature(String signature)
DescriptorFactory.createClassDescriptorFromFieldSignature(String)
instead@Deprecated public static boolean isClassResource(String resourceName)
DescriptorFactory.isClassResource(String)
insteadresourceName
- the resource name@Deprecated public static ClassDescriptor createClassDescriptorFromSignature(String signature)
DescriptorFactory.createClassDescriptorFromSignature(String)
instead@Deprecated public static ClassDescriptor createClassDescriptor(@SlashedClassName String className)
DescriptorFactory.createClassDescriptor(String)
instead@Deprecated public static ClassDescriptor[] createClassDescriptor(String[] classNames)
DescriptorFactory.createClassDescriptor(String[])
instead@Deprecated public static ClassDescriptor createClassDescriptorFromDottedClassName(String dottedClassName)
DescriptorFactory.createClassDescriptorFromDottedClassName(String)
instead@Deprecated public static ClassDescriptor createClassDescriptor(org.apache.bcel.classfile.JavaClass c)
DescriptorFactory.createClassDescriptor(JavaClass)
insteadpublic static void throwClassNotFoundException(ClassDescriptor classDescriptor) throws ClassNotFoundException
classDescriptor
- ClassDescriptor naming a class that cannot be foundClassNotFoundException
ClassNotFoundExceptionParser
public boolean isAnonymousClass()
Copyright © 2003–2015. All rights reserved.