org.jetbrains.kotlin.resolve.constants
Class CompileTimeConstantChecker
java.lang.Object
org.jetbrains.kotlin.resolve.constants.CompileTimeConstantChecker
public class CompileTimeConstantChecker
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompileTimeConstantChecker
public CompileTimeConstantChecker(@NotNull
BindingTrace trace,
boolean checkOnlyErrorsThatDependOnExpectedType)
checkConstantExpressionType
public boolean checkConstantExpressionType(@Nullable
CompileTimeConstant compileTimeConstant,
@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
escapedStringToCharacter
@NotNull
public static CompileTimeConstantChecker.CharacterWithDiagnostic escapedStringToCharacter(@NotNull
java.lang.String text,
@NotNull
JetElement expression)
parseChar
@Nullable
public static java.lang.Character parseChar(@NotNull
JetConstantExpression expression)
noExpectedTypeOrError
public static boolean noExpectedTypeOrError(JetType expectedType)