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, casted 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, casted to
short . |
SimpleConstant(Location location,
String value)
|
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor.AtomVisitor visitor)
|
void |
accept(Visitor.ElementValueVisitor visitor)
Invokes the '
visit...() ' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type. |
void |
accept(Visitor.RvalueVisitor visitor)
|
String |
toString() |
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
getLocation, throwCompileException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocation, throwCompileException
public 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
.public void accept(Visitor.AtomVisitor visitor)
Java.Atom
public void accept(Visitor.RvalueVisitor visitor)
Java.Rvalue
accept
in class Java.Rvalue
public void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValue
visit...()
' method of Visitor.ElementValueVisitor
for the concrete Java.ElementValue
type.Copyright © 2001–2016. All rights reserved.