Add an implementation of GetMethodID.
Also, add an initialization check to GetStaticMethodID.
Change-Id: I45f3aa3bc335b697cfe7d3308ba36bd9911ebe49
diff --git a/src/object.h b/src/object.h
index 4f32cf9..abcf51f 100644
--- a/src/object.h
+++ b/src/object.h
@@ -868,10 +868,16 @@
return GetStatus() >= kStatusResolved;
}
+ // Returns true if the class has been loaded.
bool IsLoaded() const {
return GetStatus() >= kStatusLoaded;
}
+ // Returns true if the class is initialized.
+ bool IsInitialized() const {
+ return GetStatus() == kStatusInitialized;
+ }
+
// Returns true if this class is in the same packages as that class.
bool IsInSamePackage(const Class* that) const;