ROSE 2.15.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Rose::BinaryAnalysis::ByteCode::Method Class Referenceabstract

Description

Base class for ByteCode Methods.

A Method stores information about an instance method/function such as its name and instructions.

Definition at line 53 of file BinaryAnalysis/ByteCode/Analysis.h.

#include <Rose/BinaryAnalysis/ByteCode/Analysis.h>

Inheritance diagram for Rose::BinaryAnalysis::ByteCode::Method:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::ByteCode::Method:
Collaboration graph
[legend]

Public Types

using Ptr = Sawyer::SharedPointer< Method >
 Shared ownership pointer.
 

Public Member Functions

const std::string & name () const
 
Address address () const
 
void finalize ()
 Complete initialization of the method once decoding is done.
 
virtual bool isStatic () const =0
 
virtual bool isSystemReserved (const std::string &name) const =0
 
virtual const SgAsmInstructionListinstructions () const =0
 
virtual void decode (const Disassembler::BasePtr &) const =0
 
virtual std::string descriptor () const =0
 
virtual void annotate ()=0
 
std::set< Addresstargets () const
 
ClassdeclaringClass () const
 
void declaringClass (Class *declaringClass)
 
SgAsmInstructioninstructionAt (Address va) const
 
const std::vector< BasicBlockPtr > & blocks () const
 
void append (BasicBlockPtr bb)
 
- Public Member Functions inherited from Sawyer::SharedObject
 SharedObject ()
 Default constructor.
 
 SharedObject (const SharedObject &)
 Copy constructor.
 
virtual ~SharedObject ()
 Virtual destructor.
 
SharedObjectoperator= (const SharedObject &)
 Assignment.
 
- Public Member Functions inherited from Sawyer::SharedFromThis< Method >
SharedPointer< Method > sharedFromThis ()
 Create a shared pointer from this.
 
SharedPointer< const Method > sharedFromThis () const
 Create a shared pointer from this.
 

Protected Member Functions

 Method (std::string name, Address va)
 

Protected Attributes

Address address_ = 0
 

Member Typedef Documentation

◆ Ptr

Shared ownership pointer.

Definition at line 57 of file BinaryAnalysis/ByteCode/Analysis.h.

Member Data Documentation

◆ address_

Address Rose::BinaryAnalysis::ByteCode::Method::address_ = 0
protected

Definition at line 103 of file BinaryAnalysis/ByteCode/Analysis.h.


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