summaryrefslogtreecommitdiffstats
path: root/vm/Misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Misc.h')
-rw-r--r--vm/Misc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/Misc.h b/vm/Misc.h
index 8d7aa4c02..f861c6c53 100644
--- a/vm/Misc.h
+++ b/vm/Misc.h
@@ -147,6 +147,14 @@ char* dvmDotToSlash(const char* str);
*/
std::string dvmHumanReadableDescriptor(const char* descriptor);
+/**
+ * Returns a human-readable string form of the name of the class of
+ * the given object. So given a java.lang.String, the output would
+ * be "java.lang.String". Given an array of int, the output would be "int[]".
+ * Given String.class, the output would be "java.lang.Class<java.lang.String>".
+ */
+std::string dvmHumanReadableType(const Object* obj);
+
/*
* Return a newly-allocated string for the "dot version" of the class
* name for the given type descriptor. That is, The initial "L" and