staktrace / cafebabe

A java class file parser
43 stars 12 forks source link

Rewrite descriptors #47

Closed staktrace closed 2 months ago

staktrace commented 2 months ago

This unifies some stuff from names.rs and descriptor.rs into descriptors.rs. This is a breaking change, as the exposed type structure has changed slightly. FieldType has been replaced by FieldDescriptor, which is structured slightly differently but contains the same information. MethodDescriptor's result is now called return_type.

Additionally, the Display trait is no longer implemented by these types - however I'm open to adding that back if there is demand for it.