org.jetbrains.jet.lang.types
Class ErrorUtils

java.lang.Object
  extended by org.jetbrains.jet.lang.types.ErrorUtils

public class ErrorUtils
extends java.lang.Object


Nested Class Summary
static class ErrorUtils.ErrorScope
           
 
Method Summary
static boolean containsErrorType(FunctionDescriptor function)
           
static boolean containsErrorType(JetType type)
           
static ErrorClassDescriptor createErrorClass(java.lang.String debugMessage)
           
static ConstructorDescriptor createErrorConstructor(int typeParameterCount, java.util.List<JetType> positionedValueParameterTypes)
           
static JetScope createErrorScope(java.lang.String debugMessage)
           
static JetScope createErrorScope(java.lang.String debugMessage, boolean throwExceptions)
           
static JetType createErrorType(java.lang.String debugMessage)
           
static JetType createErrorTypeWithCustomDebugName(java.lang.String debugName)
           
static JetType createWrongVarianceErrorType(TypeProjection value)
           
static ClassDescriptor getErrorClass()
           
static ConstructorDescriptor getErrorConstructor()
           
static java.util.Set<ConstructorDescriptor> getErrorConstructorGroup()
           
static ModuleDescriptor getErrorModule()
           
static boolean isError(DeclarationDescriptor candidate)
           
static boolean isError(TypeConstructor typeConstructor)
           
static boolean isErrorType(JetType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

containsErrorType

public static boolean containsErrorType(@NotNull
                                        FunctionDescriptor function)

getErrorConstructorGroup

@NotNull
public static java.util.Set<ConstructorDescriptor> getErrorConstructorGroup()

getErrorConstructor

public static ConstructorDescriptor getErrorConstructor()

createErrorScope

public static JetScope createErrorScope(java.lang.String debugMessage)

createErrorScope

public static JetScope createErrorScope(java.lang.String debugMessage,
                                        boolean throwExceptions)

createErrorConstructor

public static ConstructorDescriptor createErrorConstructor(int typeParameterCount,
                                                           java.util.List<JetType> positionedValueParameterTypes)

createErrorType

@NotNull
public static JetType createErrorType(java.lang.String debugMessage)

createErrorTypeWithCustomDebugName

@NotNull
public static JetType createErrorTypeWithCustomDebugName(java.lang.String debugName)

createWrongVarianceErrorType

public static JetType createWrongVarianceErrorType(TypeProjection value)

getErrorClass

@NotNull
public static ClassDescriptor getErrorClass()

isError

public static boolean isError(@NotNull
                              TypeConstructor typeConstructor)

isErrorType

public static boolean isErrorType(@NotNull
                                  JetType type)

containsErrorType

public static boolean containsErrorType(@Nullable
                                        JetType type)

isError

public static boolean isError(@NotNull
                              DeclarationDescriptor candidate)

createErrorClass

@NotNull
public static ErrorClassDescriptor createErrorClass(@NotNull
                                                            java.lang.String debugMessage)

getErrorModule

public static ModuleDescriptor getErrorModule()