public class ClassRefTypeSignature extends ClassRefOrTypeVariableSignature
| Constructor and Description |
|---|
ClassRefTypeSignature(String className,
List<TypeArgument> typeArguments,
List<String> suffixes,
List<List<TypeArgument>> suffixTypeArguments) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.
|
void |
getAllReferencedClassNames(Set<String> classNameListOut)
Get the names of all classes referenced in the type signature
|
String |
getClassName()
Get the name of the base class.
|
String |
getClassNameAndSuffixesWithoutTypeArguments()
Get the name of the class, along with any suffixes (suffixes are for inner class nesting, and are separated
by '$').
|
List<String> |
getSuffixes()
Get any suffixes of the class (typically nested inner class names).
|
List<List<TypeArgument>> |
getSuffixTypeArguments()
Get any type arguments for any suffixes of the class, one list per suffix.
|
List<TypeArgument> |
getTypeArguments()
Get any type arguments of the class.
|
int |
hashCode() |
Class<?> |
instantiate(ScanResult scanResult)
Instantiate class ref.
|
String |
toString() |
parsepublic ClassRefTypeSignature(String className, List<TypeArgument> typeArguments, List<String> suffixes, List<List<TypeArgument>> suffixTypeArguments)
public String getClassName()
public List<TypeArgument> getTypeArguments()
public List<String> getSuffixes()
public List<List<TypeArgument>> getSuffixTypeArguments()
public void getAllReferencedClassNames(Set<String> classNameListOut)
HierarchicalTypeSignaturegetAllReferencedClassNames in class HierarchicalTypeSignaturepublic Class<?> instantiate(ScanResult scanResult)
instantiate in class TypeSignaturepublic String getClassNameAndSuffixesWithoutTypeArguments()
"xyz.Cls<String>$InnerCls<Integer>" is returned as "xyz.Cls$InnerCls".public boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignatureequalsIgnoringTypeParams in class TypeSignatureCopyright © 2018. All rights reserved.