BinaryNinja::PluginCommand Class Reference

Public Member Functions

 PluginCommand (const BNPluginCommand &cmd)
 
 PluginCommand (const PluginCommand &cmd)
 
 ~PluginCommand ()
 
PluginCommandoperator= (const PluginCommand &cmd)
 
std::string GetName () const
 
std::string GetDescription () const
 
BNPluginCommandType GetType () const
 
const BNPluginCommandGetObject () const
 
bool IsValid (const PluginCommandContext &ctxt) const
 
void Execute (const PluginCommandContext &ctxt) const
 

Static Public Member Functions

static void Register (const std::string &name, const std::string &description, const std::function< void(BinaryView *view)> &action)
 
static void Register (const std::string &name, const std::string &description, const std::function< void(BinaryView *view)> &action, const std::function< bool(BinaryView *view)> &isValid)
 
static void RegisterForAddress (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, uint64_t addr)> &action)
 
static void RegisterForAddress (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, uint64_t addr)> &action, const std::function< bool(BinaryView *view, uint64_t addr)> &isValid)
 
static void RegisterForRange (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, uint64_t addr, uint64_t len)> &action)
 
static void RegisterForRange (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, uint64_t addr, uint64_t len)> &action, const std::function< bool(BinaryView *view, uint64_t addr, uint64_t len)> &isValid)
 
static void RegisterForFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, Function *func)> &action)
 
static void RegisterForFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, Function *func)> &action, const std::function< bool(BinaryView *view, Function *func)> &isValid)
 
static void RegisterForLowLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, LowLevelILFunction *func)> &action)
 
static void RegisterForLowLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, LowLevelILFunction *func)> &action, const std::function< bool(BinaryView *view, LowLevelILFunction *func)> &isValid)
 
static void RegisterForLowLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const LowLevelILInstruction &instr)> &action)
 
static void RegisterForLowLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const LowLevelILInstruction &instr)> &action, const std::function< bool(BinaryView *view, const LowLevelILInstruction &instr)> &isValid)
 
static void RegisterForMediumLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, MediumLevelILFunction *func)> &action)
 
static void RegisterForMediumLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, MediumLevelILFunction *func)> &action, const std::function< bool(BinaryView *view, MediumLevelILFunction *func)> &isValid)
 
static void RegisterForMediumLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const MediumLevelILInstruction &instr)> &action)
 
static void RegisterForMediumLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const MediumLevelILInstruction &instr)> &action, const std::function< bool(BinaryView *view, const MediumLevelILInstruction &instr)> &isValid)
 
static void RegisterForHighLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, HighLevelILFunction *func)> &action)
 
static void RegisterForHighLevelILFunction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, HighLevelILFunction *func)> &action, const std::function< bool(BinaryView *view, HighLevelILFunction *func)> &isValid)
 
static void RegisterForHighLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const HighLevelILInstruction &instr)> &action)
 
static void RegisterForHighLevelILInstruction (const std::string &name, const std::string &description, const std::function< void(BinaryView *view, const HighLevelILInstruction &instr)> &action, const std::function< bool(BinaryView *view, const HighLevelILInstruction &instr)> &isValid)
 
static std::vector< PluginCommandGetList ()
 
static std::vector< PluginCommandGetValidList (const PluginCommandContext &ctxt)
 

Constructor & Destructor Documentation

◆ PluginCommand() [1/2]

PluginCommand::PluginCommand ( const BNPluginCommand cmd)

◆ PluginCommand() [2/2]

PluginCommand::PluginCommand ( const PluginCommand cmd)

◆ ~PluginCommand()

PluginCommand::~PluginCommand ( )

Member Function Documentation

◆ Execute()

void PluginCommand::Execute ( const PluginCommandContext ctxt) const

◆ GetDescription()

std::string BinaryNinja::PluginCommand::GetDescription ( ) const
inline

◆ GetList()

vector< PluginCommand > PluginCommand::GetList ( )
static

◆ GetName()

std::string BinaryNinja::PluginCommand::GetName ( ) const
inline

◆ GetObject()

const BNPluginCommand * BinaryNinja::PluginCommand::GetObject ( ) const
inline

◆ GetType()

BNPluginCommandType BinaryNinja::PluginCommand::GetType ( ) const
inline

◆ GetValidList()

vector< PluginCommand > PluginCommand::GetValidList ( const PluginCommandContext ctxt)
static

◆ IsValid()

bool PluginCommand::IsValid ( const PluginCommandContext ctxt) const

◆ operator=()

PluginCommand & PluginCommand::operator= ( const PluginCommand cmd)

◆ Register() [1/2]

static void BinaryNinja::PluginCommand::Register ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view)> &  action 
)
static

◆ Register() [2/2]

static void BinaryNinja::PluginCommand::Register ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view)> &  action,
const std::function< bool(BinaryView *view)> &  isValid 
)
static

◆ RegisterForAddress() [1/2]

static void BinaryNinja::PluginCommand::RegisterForAddress ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, uint64_t addr)> &  action 
)
static

◆ RegisterForAddress() [2/2]

static void BinaryNinja::PluginCommand::RegisterForAddress ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, uint64_t addr)> &  action,
const std::function< bool(BinaryView *view, uint64_t addr)> &  isValid 
)
static

◆ RegisterForFunction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, Function *func)> &  action 
)
static

◆ RegisterForFunction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, Function *func)> &  action,
const std::function< bool(BinaryView *view, Function *func)> &  isValid 
)
static

◆ RegisterForHighLevelILFunction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForHighLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, HighLevelILFunction *func)> &  action 
)
static

◆ RegisterForHighLevelILFunction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForHighLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, HighLevelILFunction *func)> &  action,
const std::function< bool(BinaryView *view, HighLevelILFunction *func)> &  isValid 
)
static

◆ RegisterForHighLevelILInstruction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForHighLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const HighLevelILInstruction &instr)> &  action 
)
static

◆ RegisterForHighLevelILInstruction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForHighLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const HighLevelILInstruction &instr)> &  action,
const std::function< bool(BinaryView *view, const HighLevelILInstruction &instr)> &  isValid 
)
static

◆ RegisterForLowLevelILFunction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForLowLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, LowLevelILFunction *func)> &  action 
)
static

◆ RegisterForLowLevelILFunction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForLowLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, LowLevelILFunction *func)> &  action,
const std::function< bool(BinaryView *view, LowLevelILFunction *func)> &  isValid 
)
static

◆ RegisterForLowLevelILInstruction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForLowLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const LowLevelILInstruction &instr)> &  action 
)
static

◆ RegisterForLowLevelILInstruction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForLowLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const LowLevelILInstruction &instr)> &  action,
const std::function< bool(BinaryView *view, const LowLevelILInstruction &instr)> &  isValid 
)
static

◆ RegisterForMediumLevelILFunction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForMediumLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, MediumLevelILFunction *func)> &  action 
)
static

◆ RegisterForMediumLevelILFunction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForMediumLevelILFunction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, MediumLevelILFunction *func)> &  action,
const std::function< bool(BinaryView *view, MediumLevelILFunction *func)> &  isValid 
)
static

◆ RegisterForMediumLevelILInstruction() [1/2]

static void BinaryNinja::PluginCommand::RegisterForMediumLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const MediumLevelILInstruction &instr)> &  action 
)
static

◆ RegisterForMediumLevelILInstruction() [2/2]

static void BinaryNinja::PluginCommand::RegisterForMediumLevelILInstruction ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, const MediumLevelILInstruction &instr)> &  action,
const std::function< bool(BinaryView *view, const MediumLevelILInstruction &instr)> &  isValid 
)
static

◆ RegisterForRange() [1/2]

static void BinaryNinja::PluginCommand::RegisterForRange ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, uint64_t addr, uint64_t len)> &  action 
)
static

◆ RegisterForRange() [2/2]

static void BinaryNinja::PluginCommand::RegisterForRange ( const std::string &  name,
const std::string &  description,
const std::function< void(BinaryView *view, uint64_t addr, uint64_t len)> &  action,
const std::function< bool(BinaryView *view, uint64_t addr, uint64_t len)> &  isValid 
)
static

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