ConvertToNumber Class

(QmlJS::ConvertToNumber)
Inherits: QmlJS::ValueVisitor (protected)

Public Functions

ConvertToNumber(ValueOwner *valueOwner)
const Value *operator()(const Value *value)

Protected Functions

const Value *switchResult(const Value *value)

Reimplemented Protected Functions

virtual void visit(const NullValue *) override
virtual void visit(const UndefinedValue *) override
virtual void visit(const NumberValue *) override
virtual void visit(const BooleanValue *) override
virtual void visit(const StringValue *) override
virtual void visit(const ObjectValue *) override
virtual void visit(const FunctionValue *) override

Member Function Documentation

ConvertToNumber::ConvertToNumber(ValueOwner *valueOwner)

Default constructs an instance of ConvertToNumber.

[protected] const Value *ConvertToNumber::switchResult(const Value *value)

[override virtual protected] void ConvertToNumber::visit(const NullValue *)

[override virtual protected] void ConvertToNumber::visit(const UndefinedValue *)

[override virtual protected] void ConvertToNumber::visit(const NumberValue *)

[override virtual protected] void ConvertToNumber::visit(const BooleanValue *)

[override virtual protected] void ConvertToNumber::visit(const StringValue *)

[override virtual protected] void ConvertToNumber::visit(const ObjectValue *)

[override virtual protected] void ConvertToNumber::visit(const FunctionValue *)

const Value *ConvertToNumber::operator()(const Value *value)