org.jetbrains.jet.lang.resolve.constants
Class CompileTimeConstantResolver
java.lang.Object
org.jetbrains.jet.lang.resolve.constants.CompileTimeConstantResolver
public class CompileTimeConstantResolver
- extends java.lang.Object
Method Summary |
Diagnostic |
checkConstantExpressionType(JetConstantExpression expression,
JetType expectedType)
|
static CompileTimeConstant<?> |
escapedStringToCharValue(java.lang.String text,
JetElement expression)
|
CompileTimeConstant<?> |
getBooleanValue(JetConstantExpression expression,
JetType expectedType)
|
CompileTimeConstant<?> |
getCharValue(JetConstantExpression expression,
JetType expectedType)
|
CompileTimeConstant<?> |
getCompileTimeConstant(JetConstantExpression expression,
JetType expectedType)
|
CompileTimeConstant<?> |
getFloatValue(JetConstantExpression expression,
JetType expectedType)
|
CompileTimeConstant<?> |
getIntegerValue(JetConstantExpression expression,
JetType expectedType)
|
CompileTimeConstant<?> |
getIntegerValue(java.lang.Long value,
JetType expectedType,
JetConstantExpression expression)
|
static CompileTimeConstant<?> |
getNullValue(JetConstantExpression expression,
JetType expectedType)
|
static java.lang.Double |
parseDoubleValue(java.lang.String text)
|
static java.lang.Long |
parseLongValue(java.lang.String text)
|
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 |
CompileTimeConstantResolver
public CompileTimeConstantResolver()
checkConstantExpressionType
@Nullable
public Diagnostic checkConstantExpressionType(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
getCompileTimeConstant
@NotNull
public CompileTimeConstant<?> getCompileTimeConstant(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
getIntegerValue
@NotNull
public CompileTimeConstant<?> getIntegerValue(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
getIntegerValue
@NotNull
public CompileTimeConstant<?> getIntegerValue(@Nullable
java.lang.Long value,
@NotNull
JetType expectedType,
@NotNull
JetConstantExpression expression)
parseLongValue
@Nullable
public static java.lang.Long parseLongValue(java.lang.String text)
parseDoubleValue
@Nullable
public static java.lang.Double parseDoubleValue(java.lang.String text)
getFloatValue
@NotNull
public CompileTimeConstant<?> getFloatValue(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
getBooleanValue
@NotNull
public CompileTimeConstant<?> getBooleanValue(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
getCharValue
@NotNull
public CompileTimeConstant<?> getCharValue(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)
escapedStringToCharValue
@NotNull
public static CompileTimeConstant<?> escapedStringToCharValue(@NotNull
java.lang.String text,
@NotNull
JetElement expression)
translateEscape
@Nullable
public static java.lang.Character translateEscape(char c)
getNullValue
@NotNull
public static CompileTimeConstant<?> getNullValue(@NotNull
JetConstantExpression expression,
@NotNull
JetType expectedType)