#descriptor #jvm #parser

jvm-descriptors

JVM descriptor parsers

1 unstable release

new 0.1.0 Nov 5, 2024

#11 in #descriptor

Download history 104/week @ 2024-11-01

104 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