// Used to implement PrettyClass, PrettyField, PrettyMethod, and PrettyTypeOf, // one of which is probably more useful to you. // Returns a human-readable equivalent of 'descriptor'. So "I" would be "int", // "[[I" would be "int[][]", "[Ljava/lang/String;" would be // "java.lang.String[]", and so forth. void AppendPrettyDescriptor(constchar* descriptor, std::string* result);
std::string PrettyDescriptor(constchar* descriptor);
std::string PrettyDescriptor(Primitive::Type type);
// Used to convert user-specified ignored types ("java.lang.String[]", // "byte[][]") to the form returned by art::mirror::Class->GetDescriptor() // ("[Ljava/lang/String;", "[[B").
std::string InversePrettyDescriptor(const std::string& pretty_descriptor);
// Performs JNI name mangling as described in section 11.3 "Linking Native Methods" // of the JNI spec.
std::string MangleForJni(const std::string& s);
// Turn "java.lang.String" into "Ljava/lang/String;".
std::string DotToDescriptor(std::string_view class_name);
// Turn "Ljava/lang/String;" into "java.lang.String" using the conventions of // java.lang.Class.getName().
std::string DescriptorToDot(std::string_view descriptor);
// Turn "Ljava/lang/String;" into "java/lang/String" using the opposite conventions of // java.lang.Class.getName().
std::string DescriptorToName(std::string_view descriptor);
// Tests for whether 's' is a valid class name in the three common forms: bool IsValidBinaryClassName(constchar* s); // "java.lang.String" bool IsValidJniClassName(constchar* s); // "java/lang/String" bool IsValidDescriptor(constchar* s); // "Ljava/lang/String;"
// Returns whether the given string is a valid field or method name, // additionally allowing names that begin with '<' and end with '>'. bool IsValidMemberName(constchar* s);
} // namespace art
#endif// ART_LIBDEXFILE_DEX_DESCRIPTORS_NAMES_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.