|
| Error (const Value &value) |
| Copy constructor. More...
|
|
| Error (Value &&value) |
| Move constructor. More...
|
|
ErrorType | errorType () const |
| Get type of error. More...
|
|
Value | message () const |
| Get error message, if any. More...
|
|
| operator String () const |
| Formulate error message Base operator in Value class returns empty value for errors. To obtain error message, check for isError() then cast to Error(): More...
|
|
| Value () |
| Construct An empty (unused) value. More...
|
|
| Value (const OwnedValue &value) |
| Construct a Value and take ownership of the given native value. More...
|
|
| Value (const CopyValue &value) |
| Construct a Value using a copy (or reference to) the given native value. More...
|
|
| Value (const StringValue &value) |
| Construct a string Value from the given native value. More...
|
|
| Value (const Undefined &value) |
|
| Value (const Null &value) |
|
| Value (const Value &value) |
| Copy constructor. More...
|
|
| Value (Value &&value) |
| Move constructor. More...
|
|
| Value (int value) |
| Integer. More...
|
|
| Value (unsigned value) |
| Unsigned integer. More...
|
|
| Value (double value) |
| floating-point More...
|
|
| Value (bool value) |
| Boolean. More...
|
|
| Value (const String &s) |
| Wiring String. More...
|
|
| Value (const char *s) |
| NUL-terminated 'C' string. More...
|
|
| Value (const FSTR::String &s) |
| Flash String. More...
|
|
|
| Error (ErrorType type) |
| Error with type only. More...
|
|
| Error (ErrorType type, const String &message) |
| Error with type and message. More...
|
|
| Value () |
| Construct An empty (unused) value. More...
|
|
| Value (const OwnedValue &value) |
| Construct a Value and take ownership of the given native value. More...
|
|
| Value (const CopyValue &value) |
| Construct a Value using a copy (or reference to) the given native value. More...
|
|
| Value (const StringValue &value) |
| Construct a string Value from the given native value. More...
|
|
| Value (const Undefined &value) |
|
| Value (const Null &value) |
|
| Value (const Value &value) |
| Copy constructor. More...
|
|
| Value (Value &&value) |
| Move constructor. More...
|
|
| ~Value () |
|
Value & | operator= (const Value &value) |
| Assignment copy operator. More...
|
|
Value & | operator= (Value &&value) |
| Assignment move operator. More...
|
|
Value & | reset (jerry_value_t value=jerry_value_t(Ecma::VALUE_EMPTY)) |
| Reset contents of object to new value (default is unassigned) More...
|
|
jerry_value_t | release () |
| Get raw/native value and release ownership. More...
|
|
Type | type () const |
| Get value type. More...
|
|
Object | toObject () const |
| Create a new object from this value. More...
|
|
Value | toString () const |
| Create a new string value from this value. More...
|
|
size_t | readString (unsigned offset, char *buffer, size_t length) const |
| Get content from within a string value. More...
|
|
String | subString (unsigned offset, size_t length) const |
| Get content from within a string value. More...
|
|
| operator String () const |
| Support intrinsic cast to Wiring String. More...
|
|
template<typename T > |
T | as () const |
| Get value of object with specific type. e.g. value.as<int>() . More...
|
|
| Value (int value) |
| Integer. More...
|
|
| Value (unsigned value) |
| Unsigned integer. More...
|
|
| Value (double value) |
| floating-point More...
|
|
| Value (bool value) |
| Boolean. More...
|
|
| Value (const String &s) |
| Wiring String. More...
|
|
| Value (const char *s) |
| NUL-terminated 'C' string. More...
|
|
| Value (const FSTR::String &s) |
| Flash String. More...
|
|
const jerry_value_t & | get () const |
| const get() More...
|
|
jerry_value_t & | get () |
| get() More...
|
|
bool | isCallable () const |
| Is this object a function? If so, can cast to Callable type. More...
|
|
bool | isArray () const |
| Can this object be accessed as an array? If so, can cast to Array type. More...
|
|
bool | isError () const |
| Determine if value represents an error. If so, can cast to Error type. More...
|
|
bool | isEmpty () const |
| An empty Value contains nothing, i.e. no javascript type has been assigned. This gets interpreted as 'undefined' if any attempt is made to use it in javascript. More...
|
|
bool | isDefined () const |
| Contains a javascript value, but contents undefined. More...
|
|
bool | isBoolean () const |
| A true/false value type. More...
|
|
bool | isFalse () const |
| Is this a Boolean type set to False? More...
|
|
bool | isTrue () const |
| Is this a Boolean type set to True? More...
|
|
bool | isNull () const |
| Is this a NULL value? More...
|
|
bool | isString () const |
| Is this a String? More...
|
|
bool | isObject () const |
| Is this an Object type? If so, can cast to Object class. More...
|
|
bool | isNumber () const |
| Does this value contain a Number? More...
|
|