public class ClassRefTypeSignature extends ClassRefOrTypeVariableSignature
| Constructor | Description |
|---|---|
ClassRefTypeSignature(String className,
List<TypeArgument> typeArguments,
List<String> suffixes,
List<List<TypeArgument>> suffixTypeArguments) |
| Modifier and Type | Method | 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 base class.
|
int |
hashCode() |
|
Class<?> |
instantiate(ScanResult scanResult) |
Instantiate class ref.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitparsepublic ClassRefTypeSignature(String className, List<TypeArgument> typeArguments, List<String> suffixes, List<List<TypeArgument>> suffixTypeArguments)
className - The class name.typeArguments - The class type arguments.suffixes - The class suffixes (for inner classes)suffixTypeArguments - The suffix type arguments.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 HierarchicalTypeSignatureclassNameListOut - The set to store class names in.public Class<?> instantiate(ScanResult scanResult)
instantiate in class TypeSignaturescanResult - The scan result.Class<?>.public String getClassNameAndSuffixesWithoutTypeArguments()
"xyz.Cls<String>$InnerCls<Integer>" is returned as "xyz.Cls$InnerCls".public boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignatureequalsIgnoringTypeParams in class TypeSignatureother - the other TypeSignature to compare to.TypeSignature objects are equal, ignoring type parameters.Copyright © 2018. All rights reserved.