ICU 75.1 75.1
Loading...
Searching...
No Matches
Public Member Functions | Friends
icu::message2::data_model::UnsupportedStatement::Builder Class Reference

The mutable UnsupportedStatement::Builder class allows the statement to be constructed incrementally. More...

#include <messageformat2_data_model.h>

Inheritance diagram for icu::message2::data_model::UnsupportedStatement::Builder:
icu::UMemory

Public Member Functions

BuildersetKeyword (const UnicodeString &k)
 Sets the keyword of this statement.
 
BuildersetBody (Reserved &&r)
 Sets the body of this statement.
 
BuilderaddExpression (Expression &&e, UErrorCode &status)
 Adds an expression to this statement.
 
UnsupportedStatement build (UErrorCode &status) const
 Constructs a new immutable UnsupportedStatement using the keyword, body and (if applicable) expressions that were previously set.
 
 Builder (UErrorCode &status)
 Default constructor.
 
virtual ~Builder ()
 Destructor.
 
 Builder (const Builder &)=delete
 
Builderoperator= (const Builder &)=delete
 
 Builder (Builder &&)=delete
 
Builderoperator= (Builder &&)=delete
 

Friends

class UnsupportedStatement
 
class message2::Parser
 

Detailed Description

The mutable UnsupportedStatement::Builder class allows the statement to be constructed incrementally.

Builder is not copyable or movable.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

Definition at line 1814 of file messageformat2_data_model.h.

Constructor & Destructor Documentation

◆ Builder()

icu::message2::data_model::UnsupportedStatement::Builder::Builder ( UErrorCode status)

Default constructor.

Returns a Builder with no keyword or body set.

Parameters
statusInput/output error code.
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

◆ ~Builder()

virtual icu::message2::data_model::UnsupportedStatement::Builder::~Builder ( )
virtual

Destructor.

Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

Member Function Documentation

◆ addExpression()

Builder & icu::message2::data_model::UnsupportedStatement::Builder::addExpression ( Expression &&  e,
UErrorCode status 
)

Adds an expression to this statement.

Parameters
eThe expression to add. Passed by move.
statusInput/output error code.
Returns
A reference to the builder.
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

◆ build()

UnsupportedStatement icu::message2::data_model::UnsupportedStatement::Builder::build ( UErrorCode status) const

Constructs a new immutable UnsupportedStatement using the keyword, body and (if applicable) expressions that were previously set.

If setKeyword() was never called, then status is set to U_INVALID_STATE_ERROR. If setBody() was never called, the body is treated as absent (not an error). If addExpression() was not called at least once, then status is set to U_INVALID_STATE_ERROR.

The builder object (this) can still be used after calling build().

Parameters
statusInput/output error code.
Returns
The new UnsupportedStatement
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

◆ setBody()

Builder & icu::message2::data_model::UnsupportedStatement::Builder::setBody ( Reserved &&  r)

Sets the body of this statement.

Parameters
rThe Reserved annotation to set as the body. Passed by move.
Returns
A reference to the builder.
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

◆ setKeyword()

Builder & icu::message2::data_model::UnsupportedStatement::Builder::setKeyword ( const UnicodeString k)

Sets the keyword of this statement.

Parameters
kThe keyword to set.
Returns
A reference to the builder.
Internal:
Do not use. This API is for internal use only. ICU 75 technology preview
Deprecated:
This API is for technology preview only.

Friends And Related Symbol Documentation

◆ message2::Parser

friend class message2::Parser
friend

Definition at line 1817 of file messageformat2_data_model.h.

◆ UnsupportedStatement

Definition at line 1816 of file messageformat2_data_model.h.


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