| Modifier and Type | Field and Description |
|---|---|
| pack-priv MethodTypeSignature | containingMethodSignature
The method signature that this type variable is part of. |
| private final String | definingClassName
The name of the class that this type variable is defined in. |
| private final String | name
The type variable name. |
| private TypeParameter | typeParameterCached
The resolved type parameter, if any. |
| Access | Constructor and Description |
|---|---|
| private | TypeVariableSignature(final String
The type variable name. typeVariableName, final String the defining class name. definingClassName)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| protected String | Returns: the defining class name.Implements abstract io. Return definingClassName, so that getClassInfo() returns the |
| public String | |
| public int | |
| pack-priv static TypeVariableSignature | Returns: the type variable signaturethe parser parser, final String the defining class name definingClassName)Hides io. Parse a TypeVariableSignature. |
| public TypeParameter | Returns: the type parameter (e.g. "T extends com.xyz.Cls", or simply "T" if the type parameter does not have any bounds).Look up a type variable (e.g. "T") in the defining method and/or enclosing class' type parameters, and return the type parameter with the same name (e.g. "T extends com.xyz.Cls"). |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| 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. |
| public String | Returns: The string representation.Returns the type variable along with its type bound, if available (e.g. "X extends xyz.Cls"). |
| containingMethodSignature | back to summary |
|---|---|
| pack-priv MethodTypeSignature containingMethodSignature The method signature that this type variable is part of. | |
| definingClassName | back to summary |
|---|---|
| private final String definingClassName The name of the class that this type variable is defined in. | |
| name | back to summary |
|---|---|
| private final String name The type variable name. | |
| typeParameterCached | back to summary |
|---|---|
| private TypeParameter typeParameterCached The resolved type parameter, if any. | |
| TypeVariableSignature | back to summary |
|---|---|
| private TypeVariableSignature(final String typeVariableName, final String definingClassName) Constructor. | |
| 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. | |
| getClassName | back to summary |
|---|---|
| protected String getClassName() Implements abstract io. Return definingClassName, so that getClassInfo() returns the | |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the type variable.
| |
| 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
| |
| parse | back to summary |
|---|---|
| pack-priv static TypeVariableSignature parse(final Parser parser, final String definingClassName) throws ParseException Hides io. Parse a TypeVariableSignature.
| |
| resolve | back to summary |
|---|---|
| public TypeParameter resolve() Look up a type variable (e.g. "T") in the defining method and/or enclosing class' type parameters, and return the type parameter with the same name (e.g. "T extends com.xyz.Cls").
| |
| 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.
| |
| 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.
| |
| toStringWithTypeBound | back to summary |
|---|---|
| public String toStringWithTypeBound() Returns the type variable along with its type bound, if available (e.g. "X extends xyz.Cls"). You can get
this in structured form by calling
| |