dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::model::TryRange Struct Reference

The instructions between start and end are protected: an exception goes to the first matching catches entry, else to catch_all. More...

#include <model/types.hpp>

Public Member Functions

bool operator== (const TryRange &) const =default
 

Public Attributes

Label start
 
Label end
 
std::vector< Catch > catches
 
std::optional< Label > catch_all
 

Detailed Description

The instructions between start and end are protected: an exception goes to the first matching catches entry, else to catch_all.

Ranges may nest or overlap; where they do, the range listed first wins, as in a Java exception table.

Member Function Documentation

◆ operator==()

bool dex::model::TryRange::operator== ( const TryRange &  ) const
default

Member Data Documentation

◆ start

Label dex::model::TryRange::start

◆ end

Label dex::model::TryRange::end

◆ catches

std::vector<Catch> dex::model::TryRange::catches

◆ catch_all

std::optional<Label> dex::model::TryRange::catch_all

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