Jasmine
1.1
Super fast expression and algorithm evaluator
|
Public Member Functions | |
void | setValue (Object value) |
double | toDouble_ () throws JasmineException |
double | toDouble () |
float | toFloat_ () throws JasmineException |
float | toFloat () |
int | toInteger_ () throws JasmineException |
int | toInteger () |
boolean | toBoolean_ () throws JasmineException |
boolean | toBoolean () |
Public Attributes | |
Object | value |
Package Functions | |
Answer () | |
Answer (Object value) | |
This class is used to hold either
Jasmine uses the double data type throughout this class provides utilities methods to convert the answer to other data types.
|
package |
Create a null Answer object
|
package |
Create an Answer object with the given value.
value | if null will be set |
void org.quark.jasmine.Answer.setValue | ( | Object | value | ) |
Used by the generated QuarkExpression class object created in the default package.
boolean org.quark.jasmine.Answer.toBoolean | ( | ) |
Get the Boolean value of the base object if a direct conversion can take place. If the base object cannot be converted to a Boolean then display an error message and return false.
boolean org.quark.jasmine.Answer.toBoolean_ | ( | ) | throws JasmineException |
Get the Boolean interpretation of the base object if a direct conversion can take place.
JasmineException | if the base object is not a Boolean or cannot be converted to a Boolean |
double org.quark.jasmine.Answer.toDouble | ( | ) |
Get the Double value of the base object if a direct conversion can take place. If the base object cannot be converted to a Double then display an error message and return zero.
double org.quark.jasmine.Answer.toDouble_ | ( | ) | throws JasmineException |
Get the Double interpretation of the base object if a direct conversion can take place.
JasmineException | if the base object is not a Double or cannot be converted to a Double |
float org.quark.jasmine.Answer.toFloat | ( | ) |
Get the Float value of the base object if a direct conversion can take place. If the base object cannot be converted to a Float then display an error message and return zero.
float org.quark.jasmine.Answer.toFloat_ | ( | ) | throws JasmineException |
Get the Float interpretation of the base object if a direct conversion can take place.
JasmineException | if the base object is not a Float or cannot be converted to a Float |
int org.quark.jasmine.Answer.toInteger | ( | ) |
Get the Integer value of the base object if a direct conversion can take place. If the base object cannot be converted to an Integer then display an error message and return zero.
int org.quark.jasmine.Answer.toInteger_ | ( | ) | throws JasmineException |
Get an Integer interpretation of the base object if a direct conversion can take place.
JasmineException | if the base object is not an Integer or cannot be converted to an Integer |