org.jetbrains.jet.lang.descriptors.impl
Class TypeParameterDescriptorImpl

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by org.jetbrains.jet.lang.descriptors.impl.TypeParameterDescriptorImpl
All Implemented Interfaces:
Annotated, ClassifierDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, Named, TypeParameterDescriptor

public class TypeParameterDescriptorImpl
extends DeclarationDescriptorNonRootImpl
implements TypeParameterDescriptor


Method Summary
<R,D> R
accept(DeclarationDescriptorVisitor<R,D> visitor, D data)
           
 void addClassObjectBound(JetType bound)
           
 void addDefaultUpperBound()
           
 void addUpperBound(JetType bound)
           
static TypeParameterDescriptorImpl createForFurtherModification(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index)
           
static TypeParameterDescriptor createWithDefaultBound(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index)
           
 JetType getClassObjectType()
           
 JetType getDefaultType()
           
 int getIndex()
           
 java.util.Set<JetType> getLowerBounds()
           
 JetType getLowerBoundsAsType()
           
 TypeConstructor getTypeConstructor()
           
 java.util.Set<JetType> getUpperBounds()
           
 JetType getUpperBoundsAsType()
           
 Variance getVariance()
           
 boolean isReified()
           
 void setInitialized()
           
 TypeParameterDescriptor substitute(TypeSubstitutor substitutor)
          Deprecated. 
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, getOriginal
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptorNonRoot
getContainingDeclaration
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
acceptVoid, getOriginal
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named
getName
 

Method Detail

createWithDefaultBound

public static TypeParameterDescriptor createWithDefaultBound(@NotNull
                                                             DeclarationDescriptor containingDeclaration,
                                                             @NotNull
                                                             Annotations annotations,
                                                             boolean reified,
                                                             @NotNull
                                                             Variance variance,
                                                             @NotNull
                                                             Name name,
                                                             int index)

createForFurtherModification

public static TypeParameterDescriptorImpl createForFurtherModification(@NotNull
                                                                       DeclarationDescriptor containingDeclaration,
                                                                       @NotNull
                                                                       Annotations annotations,
                                                                       boolean reified,
                                                                       @NotNull
                                                                       Variance variance,
                                                                       @NotNull
                                                                       Name name,
                                                                       int index)

setInitialized

public void setInitialized()

isReified

public boolean isReified()
Specified by:
isReified in interface TypeParameterDescriptor

getVariance

@NotNull
public Variance getVariance()
Specified by:
getVariance in interface TypeParameterDescriptor

addUpperBound

public void addUpperBound(@NotNull
                          JetType bound)

addDefaultUpperBound

public void addDefaultUpperBound()

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

toString

public java.lang.String toString()
Overrides:
toString in class DeclarationDescriptorImpl

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

getDefaultType

@NotNull
public JetType getDefaultType()
Specified by:
getDefaultType in interface ClassifierDescriptor

getClassObjectType

public JetType getClassObjectType()
Specified by:
getClassObjectType in interface ClassifierDescriptor

addClassObjectBound

public void addClassObjectBound(@NotNull
                                JetType bound)

getIndex

public int getIndex()
Specified by:
getIndex in interface TypeParameterDescriptor