added 'isDenotable' flag to TypeConstructor

This commit is contained in:
Svetlana Isakova
2013-07-18 15:40:45 +04:00
parent d1a21bfd3e
commit 8d0573f448
6 changed files with 27 additions and 0 deletions
@@ -358,6 +358,11 @@ public class DeserializedClassDescriptor extends ClassDescriptorBase implements
return !getModality().isOverridable();
}
@Override
public boolean isDenotable() {
return true;
}
@Nullable
@Override
public ClassifierDescriptor getDeclarationDescriptor() {
@@ -168,6 +168,11 @@ public abstract class AbstractLazyTypeParameterDescriptor implements TypeParamet
return false;
}
@Override
public boolean isDenotable() {
return true;
}
@Override
public ClassifierDescriptor getDeclarationDescriptor() {
return AbstractLazyTypeParameterDescriptor.this;
@@ -478,6 +478,11 @@ public class LazyClassDescriptor extends ClassDescriptorBase implements LazyDesc
return !getModality().isOverridable();
}
@Override
public boolean isDenotable() {
return true;
}
@Override
public ClassifierDescriptor getDeclarationDescriptor() {
return LazyClassDescriptor.this;
@@ -53,6 +53,11 @@ public class IntersectionTypeConstructor extends AnnotatedImpl implements TypeCo
return false;
}
@Override
public boolean isDenotable() {
return false;
}
@Override
public ClassifierDescriptor getDeclarationDescriptor() {
return null;
@@ -34,6 +34,8 @@ public interface TypeConstructor extends Annotated {
boolean isSealed();
boolean isDenotable();
@Nullable
ClassifierDescriptor getDeclarationDescriptor();
}
@@ -74,6 +74,11 @@ public class TypeConstructorImpl extends AnnotatedImpl implements TypeConstructo
return sealed;
}
@Override
public boolean isDenotable() {
return true;
}
@Override
@Nullable
public ClassifierDescriptor getDeclarationDescriptor() {