public class CompilerAsserts
extends java.lang.Object
Constructor and Description |
---|
CompilerAsserts() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compilationConstant(boolean value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static byte |
compilationConstant(byte value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static char |
compilationConstant(char value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static double |
compilationConstant(double value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static float |
compilationConstant(float value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static int |
compilationConstant(int value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static long |
compilationConstant(long value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static java.lang.Object |
compilationConstant(java.lang.Object value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static short |
compilationConstant(short value)
Assertion that the corresponding value is reduced to a constant during compilation.
|
static void |
neverPartOfCompilation()
Assertion that this code position should never be reached during compilation.
|
static void |
neverPartOfCompilation(java.lang.String message) |
public static void neverPartOfCompilation()
CompilerDirectives.transferToInterpreter()
for the corresponding compiler
directive.public static void neverPartOfCompilation(java.lang.String message)
public static boolean compilationConstant(boolean value)
value
- the value that must be constant during compilationpublic static byte compilationConstant(byte value)
value
- the value that must be constant during compilationpublic static char compilationConstant(char value)
value
- the value that must be constant during compilationpublic static short compilationConstant(short value)
value
- the value that must be constant during compilationpublic static int compilationConstant(int value)
value
- the value that must be constant during compilationpublic static long compilationConstant(long value)
value
- the value that must be constant during compilationpublic static float compilationConstant(float value)
value
- the value that must be constant during compilationpublic static double compilationConstant(double value)
value
- the value that must be constant during compilationpublic static java.lang.Object compilationConstant(java.lang.Object value)
value
- the value that must be constant during compilation