org.jetbrains.jet.lang.resolve.lazy.descriptors
Class LazyTypeParameterDescriptor
java.lang.Object
org.jetbrains.jet.lang.resolve.lazy.descriptors.LazyTypeParameterDescriptor
- All Implemented Interfaces:
- Annotated, ClassifierDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, Named, TypeParameterDescriptor, LazyDescriptor
public class LazyTypeParameterDescriptor
- extends java.lang.Object
- implements TypeParameterDescriptor, LazyDescriptor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LazyTypeParameterDescriptor
public LazyTypeParameterDescriptor(@NotNull
ResolveSession resolveSession,
@NotNull
LazyClassDescriptor containingDeclaration,
@NotNull
JetTypeParameter jetTypeParameter,
int index)
isReified
public boolean isReified()
- Specified by:
isReified in interface TypeParameterDescriptor
getVariance
public Variance getVariance()
- Specified by:
getVariance in interface TypeParameterDescriptor
getUpperBounds
@NotNull
public java.util.Set<JetType> getUpperBounds()
- Specified by:
getUpperBounds in interface TypeParameterDescriptor
getUpperBoundsAsType
@NotNull
public JetType getUpperBoundsAsType()
- Specified by:
getUpperBoundsAsType in interface TypeParameterDescriptor
getLowerBounds
@NotNull
public java.util.Set<JetType> getLowerBounds()
- Specified by:
getLowerBounds in interface TypeParameterDescriptor
getLowerBoundsAsType
@NotNull
public JetType getLowerBoundsAsType()
- Specified by:
getLowerBoundsAsType in interface TypeParameterDescriptor
getTypeConstructor
@NotNull
public TypeConstructor getTypeConstructor()
- Specified by:
getTypeConstructor in interface ClassifierDescriptor- Specified by:
getTypeConstructor in interface TypeParameterDescriptor
getDefaultType
@NotNull
public JetType getDefaultType()
- Specified by:
getDefaultType in interface ClassifierDescriptor
getClassObjectType
public JetType getClassObjectType()
- Specified by:
getClassObjectType in interface ClassifierDescriptor
getOriginal
@NotNull
public DeclarationDescriptor getOriginal()
- Specified by:
getOriginal in interface DeclarationDescriptor
- Returns:
- The descriptor that corresponds to the original declaration of this element.
A descriptor can be obtained from its original by substituting type arguments (of the declaring class
or of the element itself).
returns
this object if the current descriptor is original itself
getContainingDeclaration
@NotNull
public DeclarationDescriptor getContainingDeclaration()
- Specified by:
getContainingDeclaration in interface DeclarationDescriptor- Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot
substitute
@NotNull
@Deprecated
public TypeParameterDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Deprecated.
- Specified by:
substitute in interface DeclarationDescriptor- Specified by:
substitute in interface TypeParameterDescriptor
accept
public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
D data)
- Specified by:
accept in interface DeclarationDescriptor
acceptVoid
public void acceptVoid(DeclarationDescriptorVisitor<java.lang.Void,java.lang.Void> visitor)
- Specified by:
acceptVoid in interface DeclarationDescriptor
getIndex
public int getIndex()
- Specified by:
getIndex in interface TypeParameterDescriptor
getAnnotations
public java.util.List<AnnotationDescriptor> getAnnotations()
- Specified by:
getAnnotations in interface Annotated
getName
@NotNull
public Name getName()
- Specified by:
getName in interface Named
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
forceResolveAllContents
public void forceResolveAllContents()
- Specified by:
forceResolveAllContents in interface LazyDescriptor