MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ToString

Method ToString

Bcore/src/main/cpp/dex/dex_file.cc:637–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637std::string Signature::ToString() const {
638 if (dex_file_ == nullptr) {
639 CHECK(proto_id_ == nullptr);
640 return "<no signature>";
641 }
642 const DexFile::TypeList* params = dex_file_->GetProtoParameters(*proto_id_);
643 std::string result;
644 if (params == nullptr) {
645 result += "()";
646 } else {
647 result += "(";
648 for (uint32_t i = 0; i < params->Size(); ++i) {
649 result += dex_file_->StringByTypeIdx(params->GetTypeItem(i).type_idx_);
650 }
651 result += ")";
652 }
653 result += dex_file_->StringByTypeIdx(proto_id_->return_type_idx_);
654 return result;
655}
656
657uint32_t Signature::GetNumberOfParameters() const {
658 const DexFile::TypeList* params = dex_file_->GetProtoParameters(*proto_id_);

Callers 3

fixCodeItemFunction · 0.45
dex_file.ccFile · 0.45
catch.hppFile · 0.45

Calls 3

GetProtoParametersMethod · 0.80
StringByTypeIdxMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected