QScript  2.1.2
Expression and algorithm evaluator
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
org.qscript.Thing Class Reference

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 ()
 
- Public Member Functions inherited from org.qscript.Variable
 Variable (String identifier)
 
 Variable (String identifier, Object value)
 
 Variable (Variable v)
 
String getIdentifier ()
 
boolean isArgument ()
 
boolean isVariable ()
 
String forListing ()
 
String toString ()
 
- Public Member Functions inherited from org.qscript.Argument
 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 ()
 
- Public Member Functions inherited from org.qscript.Token
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

- Public Attributes inherited from org.qscript.Argument
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 Public Attributes inherited from org.qscript.Token
static final Token DUMMY = new Argument(null)
 
- Protected Member Functions inherited from org.qscript.Token
 Token ()
 
- Protected Attributes inherited from org.qscript.Variable
final String identifier
 
- Protected Attributes inherited from org.qscript.Token
int line
 
int charStart
 
int charWidth
 

Detailed Description

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.

Author
Peter Lager

Constructor & Destructor Documentation

org.qscript.Thing.Thing ( String  identifier,
Object  value 
)

Create a variable with a given identifier and initialise with the specified value.

Parameters
identifiervariable name
valuethe initial value
org.qscript.Thing.Thing ( Thing  v)

Make a shallow copy of the variable

Parameters
vthe variable to copy

Member Function Documentation

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


The documentation for this class was generated from the following file: