diff options
author | 2013-07-30 01:26:50 -0700 | |
---|---|---|
committer | 2013-08-13 18:09:46 -0700 | |
commit | ea46f950e7a51585db293cd7f047de190a482414 (patch) | |
tree | 9dddc8073547a2dcb58a19e1728932a89cb149c3 /runtime/utils.h | |
parent | 5e3572709b5a5d59957f835db4f73760ecef08da (diff) |
Refactor java.lang.reflect implementation
Cherry-picked from commit ed41d5c44299ec5d44b8514f6e17f802f48094d1.
Move to ArtMethod/Field instead of AbstractMethod/Field and have
java.lang.reflect APIs delegate to ArtMethod/ArtField.
Bug: 10014286.
Change-Id: Iafc1d8c5b62562c9af8fb9fd8c5e1d61270536e7
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 1c45048c13..9e724d0ac4 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -33,9 +33,9 @@ namespace art { class DexFile; namespace mirror { +class ArtField; +class ArtMethod; class Class; -class Field; -class AbstractMethod; class Object; class String; } // namespace mirror @@ -195,13 +195,13 @@ std::string PrettyDescriptor(const mirror::Class* klass) // Returns a human-readable signature for 'f'. Something like "a.b.C.f" or // "int a.b.C.f" (depending on the value of 'with_type'). -std::string PrettyField(const mirror::Field* f, bool with_type = true) +std::string PrettyField(const mirror::ArtField* f, bool with_type = true) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); std::string PrettyField(uint32_t field_idx, const DexFile& dex_file, bool with_type = true); // Returns a human-readable signature for 'm'. Something like "a.b.C.m" or // "a.b.C.m(II)V" (depending on the value of 'with_signature'). -std::string PrettyMethod(const mirror::AbstractMethod* m, bool with_signature = true) +std::string PrettyMethod(const mirror::ArtMethod* m, bool with_signature = true) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); std::string PrettyMethod(uint32_t method_idx, const DexFile& dex_file, bool with_signature = true); @@ -265,10 +265,10 @@ bool IsValidDescriptor(const char* s); // "Ljava/lang/String;" bool IsValidMemberName(const char* s); // Returns the JNI native function name for the non-overloaded method 'm'. -std::string JniShortName(const mirror::AbstractMethod* m) +std::string JniShortName(const mirror::ArtMethod* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); // Returns the JNI native function name for the overloaded method 'm'. -std::string JniLongName(const mirror::AbstractMethod* m) +std::string JniLongName(const mirror::ArtMethod* m) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); bool ReadFileToString(const std::string& file_name, std::string* result); |