|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jetbrains.jet.lang.resolve.constants.CompileTimeConstantResolver
public class CompileTimeConstantResolver
| Field Summary | |
|---|---|
static ErrorValue |
OUT_OF_RANGE
|
| Constructor Summary | |
|---|---|
CompileTimeConstantResolver()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ErrorValue OUT_OF_RANGE
| Constructor Detail |
|---|
public CompileTimeConstantResolver()
| Method Detail |
|---|
@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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||