A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::Expression Class Reference

A native source expression whose emitter supplies required grouping. More...

#include <cpp/a11/flow/document.h>

Public Member Functions

Expression Take (bool optional=false) const
 
absl::StatusOr< Expression > Transfer (const Expression &destination, bool tolerant=false) const
 
absl::StatusOr< Expression > Cast (const syntax::TypeExpression &type) const
 
absl::StatusOr< Expression > Index (const Expression &index) const
 
absl::StatusOr< Expression > Field (std::string_view name) const
 
absl::StatusOr< Expression > Pipeline (std::string_view stage, std::optional< Expression > argument={}) const
 
absl::StatusOr< Expression > PipelineInvoke (std::string_view action, std::vector< std::pair< std::string, Expression > > arguments, const CallOptions &options) const
 
const std::string & source () const
 

Static Public Member Functions

static absl::StatusOr< Expression > Reference (std::string name)
 
static absl::StatusOr< Expression > Literal (nlohmann::json value)
 
static absl::StatusOr< Expression > Invoke (std::string_view action, std::vector< std::pair< std::string, Expression > > arguments={}, bool remote=false, bool tolerant=false, std::string_view node_map={})
 
static absl::StatusOr< Expression > InvokeWith (std::string_view action, std::vector< std::pair< std::string, Expression > > arguments, const CallOptions &options)
 
static absl::StatusOr< Expression > Object (std::vector< std::pair< std::string, Expression > > fields)
 
static absl::StatusOr< Expression > Array (std::vector< Expression > items)
 
static absl::StatusOr< Expression > Builtin (std::string_view name, std::vector< Expression > arguments)
 
static absl::StatusOr< Expression > Node (std::optional< Expression > id={}, std::string_view node_map={})
 
static absl::StatusOr< Expression > Completion (std::string_view operation, const Expression &subject)
 

Detailed Description

A native source expression whose emitter supplies required grouping.

Member Function Documentation

◆ Array()

absl::StatusOr< Expression > a11::flow::Expression::Array ( std::vector< Expression >  items)
static

◆ Builtin()

absl::StatusOr< Expression > a11::flow::Expression::Builtin ( std::string_view  name,
std::vector< Expression >  arguments 
)
static

◆ Cast()

absl::StatusOr< Expression > a11::flow::Expression::Cast ( const syntax::TypeExpression &  type) const

◆ Completion()

absl::StatusOr< Expression > a11::flow::Expression::Completion ( std::string_view  operation,
const Expression &  subject 
)
static

◆ Field()

absl::StatusOr< Expression > a11::flow::Expression::Field ( std::string_view  name) const

◆ Index()

absl::StatusOr< Expression > a11::flow::Expression::Index ( const Expression &  index) const

◆ Invoke()

absl::StatusOr< Expression > a11::flow::Expression::Invoke ( std::string_view  action,
std::vector< std::pair< std::string, Expression > >  arguments = {},
bool  remote = false,
bool  tolerant = false,
std::string_view  node_map = {} 
)
static

◆ InvokeWith()

absl::StatusOr< Expression > a11::flow::Expression::InvokeWith ( std::string_view  action,
std::vector< std::pair< std::string, Expression > >  arguments,
const CallOptions &  options 
)
static

◆ Literal()

absl::StatusOr< Expression > a11::flow::Expression::Literal ( nlohmann::json  value)
static

◆ Node()

absl::StatusOr< Expression > a11::flow::Expression::Node ( std::optional< Expression >  id = {},
std::string_view  node_map = {} 
)
static

◆ Object()

absl::StatusOr< Expression > a11::flow::Expression::Object ( std::vector< std::pair< std::string, Expression > >  fields)
static

◆ Pipeline()

absl::StatusOr< Expression > a11::flow::Expression::Pipeline ( std::string_view  stage,
std::optional< Expression >  argument = {} 
) const

◆ PipelineInvoke()

absl::StatusOr< Expression > a11::flow::Expression::PipelineInvoke ( std::string_view  action,
std::vector< std::pair< std::string, Expression > >  arguments,
const CallOptions &  options 
) const

◆ Reference()

absl::StatusOr< Expression > a11::flow::Expression::Reference ( std::string  name)
static

◆ source()

const std::string & a11::flow::Expression::source ( ) const
inline

◆ Take()

Expression a11::flow::Expression::Take ( bool  optional = false) const

◆ Transfer()

absl::StatusOr< Expression > a11::flow::Expression::Transfer ( const Expression &  destination,
bool  tolerant = false 
) const

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