| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | className
The class name. |
| private final List | suffixes
Type suffixes. |
| private List | suffixTypeAnnotations
The suffix type annotations. |
| private final List | suffixTypeArguments
The suffix type arguments. |
| private final List | typeArguments
The class type arguments. |
| Access | Constructor and Description |
|---|---|
| private | ClassRefTypeSignature(final String
The class name. className, final List<TypeArgument> The class type arguments. typeArguments, final List<String> The class suffixes (for inner classes) suffixes, final List<List<TypeArgument>> The suffix type arguments. suffixTypeArguments)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | addTypeAnnotation(final List<Classfile.
The type path. typePath,The annotation to add. annotationInfo)Implements abstract io. Add a type annotation to this type. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public boolean | equalsIgnoringTypeParams(final TypeSignature
the other other)TypeSignature to compare to.Implements abstract io. Compare base types, ignoring generic type parameters. |
| protected void | findReferencedClassNames(final Set<String>
the referenced class names. refdClassNames)Overrides io. Get the names of any classes referenced in the type signature. |
| public String | |
| public ClassInfo | Returns: TheClassInfo object for the referenced class, or null if the referenced class was not
encountered during scanning (i.e. if no ClassInfo object was created for the class during scanning).
N.B. even if this method returns null, loadClass() may be able to load the referenced class
by name.Overrides io. Get the |
| protected String | Returns: the fully-qualified class name, for classloading.Implements abstract io. The name of the class (used by |
| public String | Returns: The fully-qualified name of the class, including suffixes but without type arguments.Get the name of the class, formed from the base name and any suffixes (suffixes are for inner class nesting, and are separated by '$'), but without any type arguments. |
| public List | Returns: The class suffixes (for inner classes), or the empty list if none.Get all nested suffixes of the class (typically nested inner class names). |
| public List | Returns: The list of lists of type annotations for the suffixes (nested inner classes), one list per suffix, or null if none.Get a list of lists of type annotations for all nested suffixes of the class, one list per suffix. |
| public List | Returns: The list of type arguments for the suffixes (nested inner classes), one list per suffix, or the empty list if none.Get a list of type arguments for all nested suffixes of the class, one list per suffix. |
| public List | Returns: The type arguments for the base class.Get any type arguments of the base class. |
| public int | |
| public Class | Returns: TheClass<?> reference for the referenced class.if true, ignore exceptions and instead return null if the class could not be loaded. ignoreExceptions)Overrides io. Load the referenced class, if not already loaded, returning a |
| public Class | Returns: TheClass<?> reference for the referenced class.Overrides io. Load the referenced class, if not already loaded, returning a |
| pack-priv static ClassRefTypeSignature | Returns: The class type signature.The parser. parser, final String The name of the defining class (for resolving type variables). definingClassName)Hides io. Parse a class type signature. |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| private static boolean | |
| protected void | toStringInternal(final boolean
whether to use simple names for classes. useSimpleNames, final AnnotationInfoList toplevel annotations to exclude, to eliminate duplication (toplevel annotations are both
class/field/method annotations and type annotations). annotationsToExclude, final StringBuilder the buf)StringBuilder to write to.Implements abstract io. Render type signature to string. |
| className | back to summary |
|---|---|
| pack-priv final String className The class name. | |
| suffixes | back to summary |
|---|---|
| private final List<String> suffixes Type suffixes. | |
| suffixTypeAnnotations | back to summary |
|---|---|
| private List<AnnotationInfoList> suffixTypeAnnotations The suffix type annotations. | |
| suffixTypeArguments | back to summary |
|---|---|
| private final List<List<TypeArgument>> suffixTypeArguments The suffix type arguments. | |
| typeArguments | back to summary |
|---|---|
| private final List<TypeArgument> typeArguments The class type arguments. | |
| ClassRefTypeSignature | back to summary |
|---|---|
| private ClassRefTypeSignature(final String className, final List<TypeArgument> typeArguments, final List<String> suffixes, final List<List<TypeArgument>> suffixTypeArguments) Constructor.
| |
| addSuffixTypeAnnotation | back to summary |
|---|---|
| private void addSuffixTypeAnnotation(final int suffixIdx, final AnnotationInfo annotationInfo) | |
| addTypeAnnotation | back to summary |
|---|---|
| protected void addTypeAnnotation(final List<Classfile. Implements abstract io. Doc from io. Add a type annotation to this type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| equalsIgnoringTypeParams | back to summary |
|---|---|
| public boolean equalsIgnoringTypeParams(final TypeSignature other) Implements abstract io. Doc from io. Compare base types, ignoring generic type parameters.
| |
| findReferencedClassNames | back to summary |
|---|---|
| protected void findReferencedClassNames(final Set<String> refdClassNames) Overrides io. Get the names of any classes referenced in the type signature. | |
| getBaseClassName | back to summary |
|---|---|
| public String getBaseClassName() Get the name of the class, without any suffixes.
| |
| getClassInfo | back to summary |
|---|---|
| public ClassInfo getClassInfo() Overrides io. Get the
| |
| getClassName | back to summary |
|---|---|
| protected String getClassName() Implements abstract io. Doc from io. The name of the class (used by | |
| getFullyQualifiedClassName | back to summary |
|---|---|
| public String getFullyQualifiedClassName() Get the name of the class, formed from the base name and any suffixes (suffixes are for inner class nesting,
and are separated by '$'), but without any type arguments. For example,
For comparison,
| |
| getSuffixes | back to summary |
|---|---|
| public List Get all nested suffixes of the class (typically nested inner class names). | |
| getSuffixTypeAnnotationInfo | back to summary |
|---|---|
| public List Get a list of lists of type annotations for all nested suffixes of the class, one list per suffix.
| |
| getSuffixTypeArguments | back to summary |
|---|---|
| public List Get a list of type arguments for all nested suffixes of the class, one list per suffix.
| |
| getTypeArguments | back to summary |
|---|---|
| public List Get any type arguments of the base class.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| loadClass | back to summary |
|---|---|
| public Class Overrides io. Load the referenced class, if not already loaded, returning a
| |
| loadClass | back to summary |
|---|---|
| public Class Overrides io. Load the referenced class, if not already loaded, returning a
| |
| parse | back to summary |
|---|---|
| pack-priv static ClassRefTypeSignature parse(final Parser parser, final String definingClassName) throws ParseException Hides io. Parse a class type signature.
| |
| setScanResult | back to summary |
|---|---|
| pack-priv void setScanResult(final ScanResult scanResult) Overrides io. Doc from io. Set ScanResult backreferences in info objects after scan has completed.
| |
| suffixesMatch | back to summary |
|---|---|
| private static boolean suffixesMatch(final ClassRefTypeSignature a, final ClassRefTypeSignature b) | |
| toStringInternal | back to summary |
|---|---|
| protected void toStringInternal(final boolean useSimpleNames, final AnnotationInfoList annotationsToExclude, final StringBuilder buf) Implements abstract io. Doc from io. Render type signature to string.
| |