Right now they are rather confusing in my opinion. MethodDescriptor uses of for the method that does additional parsing, but FieldSignature and MethodSignature have it directly in their constructor.
I think having it in Field/MethodSignature.of as well makes it more clear that additional parsing is done there. I've also added MethodSignature.of(String nameAndDescriptor) which accepts a concatenated method name and descriptor (e.g. isChunkLoaded(IIZ)Z)
Right now they are rather confusing in my opinion.
MethodDescriptor
usesof
for the method that does additional parsing, butFieldSignature
andMethodSignature
have it directly in their constructor.I think having it in
Field/MethodSignature.of
as well makes it more clear that additional parsing is done there. I've also addedMethodSignature.of(String nameAndDescriptor)
which accepts a concatenated method name and descriptor (e.g.isChunkLoaded(IIZ)Z
)