org.jetbrains.jet.lang.diagnostics.rendering
Class Renderers

java.lang.Object
  extended by org.jetbrains.jet.lang.diagnostics.rendering.Renderers

public class Renderers
extends java.lang.Object


Field Summary
static Renderer<java.util.Collection<? extends ResolvedCall<?>>> AMBIGUOUS_CALLS
           
static Renderer<java.util.Collection<ClassDescriptor>> CLASSES_OR_SEPARATED
           
static Renderer<JetNamedDeclaration> DECLARATION_NAME
           
static Renderer<com.intellij.psi.PsiElement> ELEMENT_TEXT
           
static Renderer<Named> NAME
           
static Renderer<JetClassOrObject> RENDER_CLASS_OR_OBJECT
           
static Renderer<ClassDescriptor> RENDER_CLASS_OR_OBJECT_NAME
           
static Renderer<java.util.Collection<JetType>> RENDER_COLLECTION_OF_TYPES
           
static Renderer<ConstraintSystem> RENDER_CONSTRAINT_SYSTEM
           
static Renderer<Variance> RENDER_POSITION_VARIANCE
           
static Renderer<JetType> RENDER_TYPE
           
static Renderer<TypeBounds> RENDER_TYPE_BOUNDS
           
static Renderer<java.lang.String> STRING
           
static Renderer<java.lang.Object> TO_STRING
           
static Renderer<InferenceErrorData> TYPE_INFERENCE_CANNOT_CAPTURE_TYPES_RENDERER
           
static Renderer<InferenceErrorData> TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS_RENDERER
           
static Renderer<InferenceErrorData> TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER_RENDERER
           
static Renderer<InferenceErrorData> TYPE_INFERENCE_TYPE_CONSTRUCTOR_MISMATCH_RENDERER
           
static Renderer<InferenceErrorData> TYPE_INFERENCE_UPPER_BOUND_VIOLATED_RENDERER
           
 
Method Summary
static
<T> Renderer<java.util.Collection<? extends T>>
commaSeparated(Renderer<T> itemRenderer)
           
static TabledDescriptorRenderer renderCannotCaptureTypeParameterError(InferenceErrorData inferenceErrorData, TabledDescriptorRenderer result)
           
static TabledDescriptorRenderer renderConflictingSubstitutionsInferenceError(InferenceErrorData inferenceErrorData, TabledDescriptorRenderer result)
           
static
<T> com.intellij.util.Function<T,java.lang.String>
rendererToFunction(Renderer<T> renderer)
           
static TabledDescriptorRenderer renderNoInformationForParameterError(InferenceErrorData inferenceErrorData, TabledDescriptorRenderer result)
           
static TabledDescriptorRenderer renderTypeConstructorMismatchError(InferenceErrorData inferenceErrorData, TabledDescriptorRenderer renderer)
           
static TabledDescriptorRenderer renderUpperBoundViolatedInferenceError(InferenceErrorData inferenceErrorData, TabledDescriptorRenderer result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TO_STRING

public static final Renderer<java.lang.Object> TO_STRING

STRING

public static final Renderer<java.lang.String> STRING

NAME

public static final Renderer<Named> NAME

ELEMENT_TEXT

public static final Renderer<com.intellij.psi.PsiElement> ELEMENT_TEXT

DECLARATION_NAME

public static final Renderer<JetNamedDeclaration> DECLARATION_NAME

RENDER_CLASS_OR_OBJECT

public static final Renderer<JetClassOrObject> RENDER_CLASS_OR_OBJECT

RENDER_CLASS_OR_OBJECT_NAME

public static final Renderer<ClassDescriptor> RENDER_CLASS_OR_OBJECT_NAME

RENDER_TYPE

public static final Renderer<JetType> RENDER_TYPE

RENDER_POSITION_VARIANCE

public static final Renderer<Variance> RENDER_POSITION_VARIANCE

AMBIGUOUS_CALLS

public static final Renderer<java.util.Collection<? extends ResolvedCall<?>>> AMBIGUOUS_CALLS

TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS_RENDERER

public static final Renderer<InferenceErrorData> TYPE_INFERENCE_CONFLICTING_SUBSTITUTIONS_RENDERER

TYPE_INFERENCE_TYPE_CONSTRUCTOR_MISMATCH_RENDERER

public static final Renderer<InferenceErrorData> TYPE_INFERENCE_TYPE_CONSTRUCTOR_MISMATCH_RENDERER

TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER_RENDERER

public static final Renderer<InferenceErrorData> TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER_RENDERER

TYPE_INFERENCE_UPPER_BOUND_VIOLATED_RENDERER

public static final Renderer<InferenceErrorData> TYPE_INFERENCE_UPPER_BOUND_VIOLATED_RENDERER

TYPE_INFERENCE_CANNOT_CAPTURE_TYPES_RENDERER

public static final Renderer<InferenceErrorData> TYPE_INFERENCE_CANNOT_CAPTURE_TYPES_RENDERER

CLASSES_OR_SEPARATED

public static final Renderer<java.util.Collection<ClassDescriptor>> CLASSES_OR_SEPARATED

RENDER_COLLECTION_OF_TYPES

public static final Renderer<java.util.Collection<JetType>> RENDER_COLLECTION_OF_TYPES

RENDER_CONSTRAINT_SYSTEM

public static final Renderer<ConstraintSystem> RENDER_CONSTRAINT_SYSTEM

RENDER_TYPE_BOUNDS

public static final Renderer<TypeBounds> RENDER_TYPE_BOUNDS
Method Detail

commaSeparated

public static <T> Renderer<java.util.Collection<? extends T>> commaSeparated(Renderer<T> itemRenderer)

renderConflictingSubstitutionsInferenceError

public static TabledDescriptorRenderer renderConflictingSubstitutionsInferenceError(InferenceErrorData inferenceErrorData,
                                                                                    TabledDescriptorRenderer result)

renderTypeConstructorMismatchError

@NotNull
public static TabledDescriptorRenderer renderTypeConstructorMismatchError(@NotNull
                                                                                  InferenceErrorData inferenceErrorData,
                                                                                  @NotNull
                                                                                  TabledDescriptorRenderer renderer)

renderNoInformationForParameterError

@NotNull
public static TabledDescriptorRenderer renderNoInformationForParameterError(@NotNull
                                                                                    InferenceErrorData inferenceErrorData,
                                                                                    @NotNull
                                                                                    TabledDescriptorRenderer result)

renderUpperBoundViolatedInferenceError

@NotNull
public static TabledDescriptorRenderer renderUpperBoundViolatedInferenceError(InferenceErrorData inferenceErrorData,
                                                                                      TabledDescriptorRenderer result)

renderCannotCaptureTypeParameterError

@NotNull
public static TabledDescriptorRenderer renderCannotCaptureTypeParameterError(@NotNull
                                                                                     InferenceErrorData inferenceErrorData,
                                                                                     @NotNull
                                                                                     TabledDescriptorRenderer result)

rendererToFunction

@NotNull
public static <T> com.intellij.util.Function<T,java.lang.String> rendererToFunction(@NotNull
                                                                                            Renderer<T> renderer)