public class ClassTypeSignature extends HierarchicalTypeSignature
| Constructor | Description |
|---|---|
ClassTypeSignature(List<TypeParameter> typeParameters,
ClassRefTypeSignature superclassSignature,
List<ClassRefTypeSignature> superinterfaceSignatures) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object obj) |
|
void |
getAllReferencedClassNames(Set<String> classNameListOut) |
Get the names of all classes referenced in the type signature
|
ClassRefTypeSignature |
getSuperclassSignature() |
Get the type signature for the superclass (possibly null in the case of
Object, since it
doesn't have a superclass). |
List<ClassRefTypeSignature> |
getSuperinterfaceSignatures() |
Get the type signatures of any superinterfaces
|
List<TypeParameter> |
getTypeParameters() |
Get the type parameters for the class.
|
int |
hashCode() |
|
static ClassTypeSignature |
parse(String typeDescriptor) |
Parse a class type signature or class type descriptor.
|
String |
toString() |
|
String |
toString(int modifiers,
boolean isAnnotation,
boolean isInterface,
String className) |
Render into String form.
|
public ClassTypeSignature(List<TypeParameter> typeParameters, ClassRefTypeSignature superclassSignature, List<ClassRefTypeSignature> superinterfaceSignatures)
typeParameters - The class type parameters.superclassSignature - The superclass signature.superinterfaceSignatures - The superinterface signature(s).public List<TypeParameter> getTypeParameters()
public ClassRefTypeSignature getSuperclassSignature()
Object, since it
doesn't have a superclass).Object).public List<ClassRefTypeSignature> getSuperinterfaceSignatures()
public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignatureclassNameListOut - The set to store class names in.public String toString(int modifiers, boolean isAnnotation, boolean isInterface, String className)
modifiers - The class modifiers.isAnnotation - True if the class is an annotation.isInterface - True if the class is an interface.className - The class namepublic static ClassTypeSignature parse(String typeDescriptor)
typeDescriptor - The class type signature or class type descriptor to parse.Copyright © 2018. All rights reserved.