public static final class Java.SimpleConstant extends Java.Rvalue
NOWHERE| Constructor and Description |
|---|
SimpleConstant(Location location)
Equivalent of the
null literal. |
SimpleConstant(Location location,
boolean value)
Equivalent of a
Java.BooleanLiteral. |
SimpleConstant(Location location,
byte value)
Equivalent of an literal, cast to
byte. |
SimpleConstant(Location location,
char value)
Equivalent of a
Java.CharacterLiteral. |
SimpleConstant(Location location,
double value)
Equivalent of a
Java.FloatingPointLiteral with type double. |
SimpleConstant(Location location,
float value)
Equivalent of a
Java.FloatingPointLiteral with type float. |
SimpleConstant(Location location,
int value)
Equivalent of an
Java.IntegerLiteral with type int. |
SimpleConstant(Location location,
long value)
Equivalent of an
Java.IntegerLiteral with type long. |
SimpleConstant(Location location,
short value)
Equivalent of an literal, cast to
short. |
SimpleConstant(Location location,
String value)
|
| Modifier and Type | Method and Description |
|---|---|
<R,EX extends Throwable> |
accept(Visitor.RvalueVisitor<R,EX> visitor)
|
String |
toString() |
accept, accept, getEnclosingScope, getEnclosingScopeOrNull, setEnclosingScope, toRvaluetoLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileExceptiongetLocation, throwCompileExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLocation, throwCompileExceptionpublic SimpleConstant(Location location)
null literal.public SimpleConstant(Location location, byte value)
byte.public SimpleConstant(Location location, short value)
short.public SimpleConstant(Location location, int value)
Java.IntegerLiteral with type int.public SimpleConstant(Location location, long value)
Java.IntegerLiteral with type long.public SimpleConstant(Location location, float value)
Java.FloatingPointLiteral with type float.
Notice that this class supports the special values Float.NaN, Float.NEGATIVE_INFINITY and
Float.POSITIVE_INFINITY, which can not be represented with a Java.FloatingPointLiteral.
public SimpleConstant(Location location, double value)
Java.FloatingPointLiteral with type double.
Notice that this class supports the special values Double.NaN, Double.NEGATIVE_INFINITY
and Double.POSITIVE_INFINITY, which can not be represented with a Java.FloatingPointLiteral.
public SimpleConstant(Location location, char value)
Java.CharacterLiteral.public SimpleConstant(Location location, boolean value)
Java.BooleanLiteral.@Nullable public <R,EX extends Throwable> R accept(Visitor.RvalueVisitor<R,EX> visitor) throws EX extends Throwable
Java.Rvalueaccept in class Java.RvalueEX extends Throwable