org.jetbrains.kotlin.resolve.constants
Class CompileTimeConstantChecker

java.lang.Object
  extended by org.jetbrains.kotlin.resolve.constants.CompileTimeConstantChecker

public class CompileTimeConstantChecker
extends java.lang.Object


Nested Class Summary
static class CompileTimeConstantChecker.CharacterWithDiagnostic
           
 
Constructor Summary
CompileTimeConstantChecker(ResolutionContext<?> context, KotlinBuiltIns builtIns, boolean checkOnlyErrorsThatDependOnExpectedType)
           
 
Method Summary
 boolean checkConstantExpressionType( compileTimeConstant, KtConstantExpression expression, KotlinType expectedType)
           
static CompileTimeConstantChecker.CharacterWithDiagnostic escapedStringToCharacter(java.lang.String text, KtElement expression)
           
static java.lang.Character parseChar(KtConstantExpression expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompileTimeConstantChecker

public CompileTimeConstantChecker(@NotNull
                                  ResolutionContext<?> context,
                                  @NotNull
                                  KotlinBuiltIns builtIns,
                                  boolean checkOnlyErrorsThatDependOnExpectedType)
Method Detail

checkConstantExpressionType

public boolean checkConstantExpressionType(@Nullable
                                            compileTimeConstant,
                                           @NotNull
                                           KtConstantExpression expression,
                                           @NotNull
                                           KotlinType expectedType)

escapedStringToCharacter

@NotNull
public static CompileTimeConstantChecker.CharacterWithDiagnostic escapedStringToCharacter(@NotNull
                                                                                                  java.lang.String text,
                                                                                                  @NotNull
                                                                                                  KtElement expression)

parseChar

@Nullable
public static java.lang.Character parseChar(@NotNull
                                                     KtConstantExpression expression)