public class CompileTimeConstantResolver extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static ErrorValue |
OUT_OF_RANGE |
| Constructor and Description |
|---|
CompileTimeConstantResolver() |
| Modifier and Type | Method and Description |
|---|---|
static CompileTimeConstant<?> |
escapedStringToCharValue(java.lang.String text) |
CompileTimeConstant<?> |
getBooleanValue(java.lang.String text,
JetType expectedType) |
CompileTimeConstant<?> |
getCharValue(java.lang.String text,
JetType expectedType) |
CompileTimeConstant<?> |
getEscapedStringValue(java.util.List<JetStringTemplateEntry> entries,
JetType expectedType) |
CompileTimeConstant<?> |
getFloatValue(java.lang.String text,
JetType expectedType) |
CompileTimeConstant<?> |
getIntegerValue(java.lang.String text,
JetType expectedType) |
CompileTimeConstant<?> |
getNullValue(JetType expectedType) |
CompileTimeConstant<?> |
getRawStringValue(java.lang.String unescapedText,
JetType expectedType) |
static java.lang.Character |
translateEscape(char c) |
public static final ErrorValue OUT_OF_RANGE
public CompileTimeConstantResolver()
@NotNull public CompileTimeConstant<?> getIntegerValue(@NotNull java.lang.String text, @NotNull JetType expectedType)
@NotNull public CompileTimeConstant<?> getFloatValue(@NotNull java.lang.String text, @NotNull JetType expectedType)
@NotNull public CompileTimeConstant<?> getBooleanValue(@NotNull java.lang.String text, @NotNull JetType expectedType)
@NotNull public CompileTimeConstant<?> getCharValue(@NotNull java.lang.String text, @NotNull JetType expectedType)
@NotNull public static CompileTimeConstant<?> escapedStringToCharValue(@NotNull java.lang.String text)
@Nullable public static java.lang.Character translateEscape(char c)
@NotNull public CompileTimeConstant<?> getRawStringValue(@NotNull java.lang.String unescapedText, @NotNull JetType expectedType)
@NotNull public CompileTimeConstant<?> getEscapedStringValue(@NotNull java.util.List<JetStringTemplateEntry> entries, @NotNull JetType expectedType)
@NotNull public CompileTimeConstant<?> getNullValue(@NotNull JetType expectedType)