|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.Java.Located
org.codehaus.janino.Java.Atom
org.codehaus.janino.Java.Rvalue
org.codehaus.janino.Java.SimpleConstant
public static final class Java.SimpleConstant
This class is not used when code is parsed; it is intended for "programmatic" literals.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.janino.Java.Located |
|---|
NOWHERE |
| Constructor Summary | |
|---|---|
Java.SimpleConstant(Location location)
Equivalent of the null literal. |
|
Java.SimpleConstant(Location location,
boolean value)
Equivalent of a Java.BooleanLiteral. |
|
Java.SimpleConstant(Location location,
byte value)
Equivalent of an literal, casted to byte. |
|
Java.SimpleConstant(Location location,
char value)
Equivalent of a Java.CharacterLiteral. |
|
Java.SimpleConstant(Location location,
double value)
Equivalent of a Java.FloatingPointLiteral with type double. |
|
Java.SimpleConstant(Location location,
float value)
Equivalent of a Java.FloatingPointLiteral with type float. |
|
Java.SimpleConstant(Location location,
int value)
Equivalent of an Java.IntegerLiteral with type int. |
|
Java.SimpleConstant(Location location,
long value)
Equivalent of an Java.IntegerLiteral with type long. |
|
Java.SimpleConstant(Location location,
short value)
Equivalent of an literal, casted to short. |
|
Java.SimpleConstant(Location location,
String value)
Equivalent of a Java.StringLiteral, or, if value is null, the equivalent of a Java.NullLiteral. |
|
| Method Summary | |
|---|---|
void |
accept(Visitor.AtomVisitor visitor)
Invokes the ' visit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type. |
void |
accept(Visitor.ElementValueVisitor visitor)
Invokes the ' visit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type. |
void |
accept(Visitor.RvalueVisitor visitor)
Invokes the ' visit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue
type. |
String |
toString()
|
| Methods inherited from class org.codehaus.janino.Java.Rvalue |
|---|
getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue |
| Methods inherited from class org.codehaus.janino.Java.Atom |
|---|
toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException |
| Methods inherited from class org.codehaus.janino.Java.Located |
|---|
getLocation, throwCompileException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.codehaus.janino.Java.Locatable |
|---|
getLocation, throwCompileException |
| Constructor Detail |
|---|
public Java.SimpleConstant(Location location)
null literal.
public Java.SimpleConstant(Location location,
byte value)
byte.
public Java.SimpleConstant(Location location,
short value)
short.
public Java.SimpleConstant(Location location,
int value)
Java.IntegerLiteral with type int.
public Java.SimpleConstant(Location location,
long value)
Java.IntegerLiteral with type long.
public Java.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 Java.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 Java.SimpleConstant(Location location,
char value)
Java.CharacterLiteral.
public Java.SimpleConstant(Location location,
boolean value)
Java.BooleanLiteral.
public Java.SimpleConstant(Location location,
String value)
Java.StringLiteral, or, if value is null, the equivalent of a Java.NullLiteral.
| Method Detail |
|---|
public void accept(Visitor.AtomVisitor visitor)
Java.Atomvisit...()' method of Visitor.AtomVisitor for the concrete Java.Atom type.
accept in class Java.Atompublic void accept(Visitor.RvalueVisitor visitor)
Java.Rvaluevisit...()' method of Visitor.RvalueVisitor for the concrete Java.Rvalue
type.
accept in class Java.Rvaluepublic void accept(Visitor.ElementValueVisitor visitor)
Java.ElementValuevisit...()' method of Visitor.ElementValueVisitor for the concrete Java.ElementValue type.
public String toString()
toString in class Java.Atom
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||