Constructor and Description |
---|
JVal(double v) |
JVal(float v) |
JVal(int v) |
JVal(long v) |
JVal(java.lang.String v) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDouble() |
boolean |
isFloat() |
boolean |
isInt() |
boolean |
isLiteral() |
boolean |
isLong() |
boolean |
isVal() |
boolean |
isVar() |
double |
toDouble() |
float |
toFloat() |
int |
toInt() |
java.lang.String |
toLiteral() |
long |
toLong() |
java.lang.String |
toString() |
public JVal(double v)
v
- the double value of this JValpublic JVal(float v)
v
- the float value of this JValpublic JVal(int v)
v
- the int value of this JValpublic JVal(long v)
v
- the long value of this JValpublic JVal(java.lang.String v) throws InvalidJValException
v
- the literal (Java String) value of this JValInvalidJValException
- if the given literal (Java String) is invalid (e.g. null)public boolean isDouble()
public boolean isFloat()
public boolean isInt()
public boolean isLiteral()
public boolean isLong()
public boolean isVal()
public boolean isVar()
public double toDouble()
public float toFloat()
public java.lang.String toLiteral()
public long toLong()
public java.lang.String toString()
toString
in class java.lang.Object