if (!unbox_for_result) {
ThrowIllegalArgumentException(
android::base::StringPrintf("Invalid primitive conversion from %s to %s",
PrettyDescriptor(srcType).c_str(),
PrettyDescriptor(dstType).c_str()).c_str());
} else {
ThrowClassCastException(android::base::StringPrintf("Couldn't convert result of type %s to %s",
PrettyDescriptor(srcType).c_str(),
PrettyDescriptor(dstType).c_str()).c_str());
} returnfalse;
}
inlinebool VerifyObjectIsClass(ObjPtr<mirror::Object> o, ObjPtr<mirror::Class> c) { if (UNLIKELY(o == nullptr)) {
ThrowNullPointerException("null receiver"); returnfalse;
} elseif (UNLIKELY(!o->InstanceOf(c))) {
InvalidReceiverError(o, c); returnfalse;
} returntrue;
}
} // namespace art
#endif// ART_RUNTIME_REFLECTION_INL_H_
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet am 2026-06-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.