mod method
mod field
This is just plain awkward.
This isn't great:
jreflection::method::Type::Single(jreflection::method::BasicType::Class(jreflection::class::Id("java/lang/Thread")))
A field or method may have the type:
java.lang.List<java.lang.String>
But the current type API would expose that as:
java.lang.List
Tuples, flatten single+array into one variant?
(0, jreflection::Type::Int)
int
(1, jreflection::Type::Class("java/lang/Thread"))
java.lang.Thread[]
Another type for generic params?
mod type { enum Basic { Int, Class(String), ... } type Erased = (usize, Basic); type Generic = (usize, Basic, ???); } mod field { type Descriptor = type::Erased; // ? } mod method { struct Descriptor(String); // ... impl Iterator<Item = type::Erased> for DescriptorArgsIter { ... } }
There was an error while loading. Please reload this page.