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

A method body. More...

#include <model/types.hpp>

Public Member Functions

Label new_label () noexcept
 A label not used yet in this code.
 
uint32_t label_count () const noexcept
 Number of labels new_label() handed out.
 
bool operator== (const Code &o) const
 Compares the content; which labels new_label() has handed out does not count.
 

Public Attributes

Reg registers = 0
 Frame size.
 
std::vector< Item > items
 
std::vector< TryRange > tries
 
std::vector< std::optional< std::string > > parameter_names
 Debug names of the parameters (not including this).
 

Detailed Description

A method body.

The incoming arguments occupy the last registers of the frame (this first for an instance method); write() derives the argument and outgoing-argument sizes.

Member Function Documentation

◆ new_label()

Label dex::model::Code::new_label ( )
inlinenoexcept

A label not used yet in this code.

◆ label_count()

uint32_t dex::model::Code::label_count ( ) const
inlinenoexcept

Number of labels new_label() handed out.

◆ operator==()

bool dex::model::Code::operator== ( const Code &  o) const
inline

Compares the content; which labels new_label() has handed out does not count.

Member Data Documentation

◆ registers

Reg dex::model::Code::registers = 0

Frame size.

◆ items

std::vector<Item> dex::model::Code::items

◆ tries

std::vector<TryRange> dex::model::Code::tries

◆ parameter_names

std::vector<std::optional<std::string> > dex::model::Code::parameter_names

Debug names of the parameters (not including this).


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