Skip to content

ObjectNameExpression

class ObjectNameExpression

Represents an expression referring to the name of the current object.

DEFINITION
class ObjectNameExpression;

constructor ObjectNameExpression

DEFINITION
ObjectNameExpression ( const Location & location );
PARAMETERDESCRIPTION
location

method createstatic

DEFINITION
static Expression  create ( const Location & location,
Object * object );
PARAMETERDESCRIPTION
location
object
RETURNSDESCRIPTION
Expression

method evaluatedconstvirtual

DEFINITION
virtual std::optional< Expression >  evaluated ( const EvaluationContext & context ) const;
PARAMETERDESCRIPTION
context
RETURNSDESCRIPTION
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;
PARAMETERDESCRIPTION
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;
RETURNSDESCRIPTION
std::optional< Value::Type >

The type of the expression's value.