Public Member Functions | List of all members
Properties Class Referencefinal

The outer structure. More...

#include <PropertyAst.hpp>

Inheritance diagram for Properties:
[legend]
Collaboration diagram for Properties:
[legend]

Public Member Functions

 Properties (const CodeSpan &codeSpan_, std::string &&text_, std::vector< std::unique_ptr< PropertyNode >> &&nodes_)
 Create a properties node. More...
 
bool operator== (const PropertyNode &rhs) const override
 Returns true if the current node is equal to the supplied node. More...
 
void visit (Payload &payload, PropertyVisitor &visitor) const override
 Visit the node. More...
 
- Public Member Functions inherited from PropertyNode
virtual ~PropertyNode ()=default
 Destroy a Property AST node. More...
 
const CodeSpangetCodeSpan () const
 Get the code span of the node. More...
 
bool operator!= (const PropertyNode &rhs) const
 Returns true if the current node is not equal to the supplied node. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from PropertyNode
static std::string normalise (std::string_view input)
 Removing escaping, line continuation, and leading blanks. More...
 

Detailed Description

The outer structure.

A single instance of this class represents the entire parsed properties text.

Constructor & Destructor Documentation

◆ Properties()

Properties ( const CodeSpan codeSpan_,
std::string &&  text_,
std::vector< std::unique_ptr< PropertyNode >> &&  nodes_ 
)
inline

Create a properties node.

The entire input text is moved to and owned by the properties node.

Member Function Documentation

◆ operator==()

bool operator== ( const PropertyNode rhs) const
inlineoverridevirtual

Returns true if the current node is equal to the supplied node.

Overridden in concrete classes.

Returns
true if the current node is equal to the supplied node.

Reimplemented from PropertyNode.

◆ visit()

void visit ( Payload payload,
PropertyVisitor visitor 
) const
inlineoverridevirtual

Visit the node.

the visitor specific payload (cast in the concrete visitor class)

Parameters
visitorthe visitor

Implements PropertyNode.


The documentation for this class was generated from the following file: