-
Notifications
You must be signed in to change notification settings - Fork 11
Value
Santanu edited this page Feb 3, 2022
·
4 revisions
The Value
base class is used to abstract out all expression components that can be placed in LHS and RHS of a Hope expression.
The following derived types are important:
-
NumericValue
- Represents the number type of Hope as discussed in core data types -
BooleanValue
- Represents the boolean type of Hope as discussed in core data types -
StringValue
- Represents the string type of Hope as discussed in core data types -
ArrayValue
- Represents arrays. This can be used only as function parameters. -
JsonPointerValue
- Represents a json pointer that will evaluate to a value of core type during evaluation phase. -
JsonPathValue
- Represents a json path that will evaluate to a value of core type during evaluation phase. -
FunctionValue
- Represents a function call that will evaluate to a value of core type during evaluation phase.
Note
From Version 1.1.0 Hope supports JSON Pointers (RFC). Pointers fit better for the use-case, are more standardized and much more performant than most Json path implementations. As such Json Path support would be removed in a future version of Hope. All new code should use Json Pointers and not json paths.