ObjectNameExpression
class ObjectNameExpression
Represents an expression referring to the name of the current object.
DEFINITION
class ObjectNameExpression;
constructor ObjectNameExpression
DEFINITION
| ObjectNameExpression | ( | const Location & location | ); |
| PARAMETER | DESCRIPTION |
|---|---|
location |
method createstatic
DEFINITION
| static Expression create | ( | const Location & location, | |
| Object * object | ); |
| PARAMETER | DESCRIPTION |
|---|---|
location |
|
object |
| RETURNS | DESCRIPTION |
|---|---|
Expression |
method evaluatedconstvirtual
DEFINITION
| virtual std::optional< Expression > evaluated | ( | const EvaluationContext & context | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
context |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< Expression > |
method serialize_subconstvirtual
Serialize the expression to a stream.
This method must be implemented by derived classes.
DEFINITION
| virtual void serialize_sub | ( | std::ostream & stream | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
The stream to serialize to. |
method typeconstvirtual
Get the type of the expression's value if it can be determined.
DEFINITION
| virtual std::optional< Value::Type > type | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< Value::Type > |
The type of the expression's value. |