Klasse TypeVariableReferenceType

Alle implementierten Schnittstellen:
AnnotatedElement, Traceable, TypeVariableDeclaringElement, TypeVariableReference

public class TypeVariableReferenceType extends ReferenceType implements TypeVariableReference
ReferenceType pointing to a type variable. The delegate for this reference type is the upperbound on the type variable (so Object if not otherwise specified).
Autor:
Adrian Colyer, Andy Clement
  • Konstruktordetails

    • TypeVariableReferenceType

      public TypeVariableReferenceType(TypeVariable typeVariable, World world)
  • Methodendetails

    • equals

      public boolean equals(Object other)
      Beschreibung aus Klasse kopiert: UnresolvedType
      Equality is checked based on the underlying signature.
      Setzt außer Kraft:
      equals in Klasse ResolvedType
    • hashCode

      public int hashCode()
      Beschreibung aus Klasse kopiert: UnresolvedType
      Equality is checked based on the underlying signature, so the hash code of a particular type is the hash code of its signature string.
      Setzt außer Kraft:
      hashCode in Klasse UnresolvedType
    • getDelegate

      public ReferenceTypeDelegate getDelegate()
      For a TypeVariableReferenceType the delegate is the delegate for the first bound.
      Setzt außer Kraft:
      getDelegate in Klasse ReferenceType
    • parameterize

      public UnresolvedType parameterize(Map<String,UnresolvedType> typeBindings)
      Beschreibung aus Klasse kopiert: ResolvedType
      Iff I am a parameterized type, and any of my parameters are type variable references (or nested parameterized types), return a version with those type parameters replaced in accordance with the passed bindings.
      Setzt außer Kraft:
      parameterize in Klasse ResolvedType
    • getTypeVariable

      public TypeVariable getTypeVariable()
      Angegeben von:
      getTypeVariable in Schnittstelle TypeVariableReference
    • isTypeVariableReference

      public boolean isTypeVariableReference()
      Setzt außer Kraft:
      isTypeVariableReference in Klasse UnresolvedType
    • toString

      public String toString()
      Beschreibung aus Klasse kopiert: UnresolvedType
      Returns a java language string representation of this type.
      Setzt außer Kraft:
      toString in Klasse UnresolvedType
    • isGenericWildcard

      public boolean isGenericWildcard()
      Setzt außer Kraft:
      isGenericWildcard in Klasse UnresolvedType
    • isAnnotation

      public boolean isAnnotation()
      Beschreibung aus Klasse kopiert: ResolvedType
      Note: Only overridden by Name subtype.
      Setzt außer Kraft:
      isAnnotation in Klasse ReferenceType
    • getSignature

      public String getSignature()
      return the signature for a *REFERENCE* to a type variable, which is simply: Tname; there is no bounds info included, that is in the signature of the type variable itself
      Setzt außer Kraft:
      getSignature in Klasse UnresolvedType
      Gibt zurück:
      the java JVM signature string for this type.
    • getTypeVariableName

      public String getTypeVariableName()
      Gibt zurück:
      the name of the type variable
    • getUpperBound

      public ReferenceType getUpperBound()
    • resolve

      public ResolvedType resolve(World world)
      resolve the type variable we are managing and then return this object. 'this' is already a ResolvedType but the type variable may transition from a not-resolved to a resolved state.
      Setzt außer Kraft:
      resolve in Klasse UnresolvedType
      Parameter:
      world - the World within which to resolve.
      Gibt zurück:
      a resolved type representing this type in the appropriate world.
    • isTypeVariableResolved

      public boolean isTypeVariableResolved()
      Gibt zurück:
      true if the type variable this reference is managing is resolved