Inherits org.qscript.Variable.
Public Member Functions | |
Thing (String identifier, Object value) | |
Thing (Thing v) | |
boolean | isThing () |
boolean | isBoolean () |
boolean | isDouble () |
boolean | isString () |
boolean | isNumeric () |
boolean | isVector () |
boolean | isComplex () |
![]() | |
Variable (String identifier) | |
Variable (String identifier, Object value) | |
Variable (Variable v) | |
String | getIdentifier () |
boolean | isArgument () |
boolean | isVariable () |
String | forListing () |
String | toString () |
![]() | |
Argument (Object v) | |
boolean | equals (Object o) |
Object | getValue () |
boolean | isArgument () |
boolean | isNan () |
Vector | toVector_ () throws EvaluationException |
Vector | toVector () |
Complex | toComplex_ () throws EvaluationException |
Complex | toComplex () |
boolean | toBoolean_ () throws EvaluationException |
boolean | toBoolean () |
double | toDouble_ () throws EvaluationException |
double | toDouble () |
float | toFloat_ () throws EvaluationException |
float | toFloat () |
int | toInteger_ () throws EvaluationException |
int | toInteger () |
String | toString () |
![]() | |
void | setTextPosition (int charStart, int charWidth) |
void | setTextPosition (int line, int charStart, int charWidth) |
int | getLine () |
int | getCharStart () |
int | getCharWidth () |
boolean | isArgument () |
boolean | isFlowAction () |
boolean | isVariable () |
boolean | isThing () |
boolean | isOperator () |
boolean | isFlowOperator () |
String | forListing () |
Additional Inherited Members | |
![]() | |
final boolean | isNull |
final boolean | isString |
final boolean | isInteger |
final boolean | isDouble |
final boolean | isBoolean |
final boolean | isVector |
final boolean | isComplex |
final boolean | isThing |
final boolean | isNumeric |
![]() | |
static final Token | DUMMY = new Argument(null) |
![]() | |
Token () | |
![]() | |
final String | identifier |
![]() | |
int | line |
int | charStart |
int | charWidth |
This class is the key to extending QScript to work with and manipulate user defined clases.
It inherits from the class Variable class so each user defined object can have its own identifier so that a script can handle multiple instances of the user defined class.
org.qscript.Thing.Thing | ( | String | identifier, |
Object | value | ||
) |
Create a variable with a given identifier and initialise with the specified value.
identifier | variable name |
value | the initial value |
org.qscript.Thing.Thing | ( | Thing | v | ) |
Make a shallow copy of the variable
v | the variable to copy |
boolean org.qscript.Thing.isBoolean | ( | ) |
Returns false
boolean org.qscript.Thing.isComplex | ( | ) |
Returns false
boolean org.qscript.Thing.isDouble | ( | ) |
Returns false
boolean org.qscript.Thing.isNumeric | ( | ) |
Returns false
boolean org.qscript.Thing.isString | ( | ) |
Returns false
boolean org.qscript.Thing.isThing | ( | ) |
Returns true
boolean org.qscript.Thing.isVector | ( | ) |
Returns false