#descriptor #jvm #parser

jvm-descriptors

JVM descriptor parsers

1 unstable release

0.1.0 Nov 5, 2024

#16 in #descriptor

Download history 115/week @ 2024-11-02 14/week @ 2024-11-09 3/week @ 2024-11-16 1/week @ 2024-11-23

133 downloads per month

MIT license

10KB
324 lines

jvm-descriptors

JVM descriptor parsers

Examples

"Ljava/lang/String;".parse::<Type>();

Method {
  name: "hello".to_string(),
  parameters: vec![],
  return_type: None,
}.to_string();

Notes

Note that this crate is somewhat lenient—the goal is to do basic parsing and no other validation. If you want to make sure that e.g. a given package path has at least two parts, validate it on your own. Additionally, absolutely no validation is done when serialising to a string.

Dependencies

~2.5MB
~36K SLoC