Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examine all the things #14

Open
lucko opened this issue Mar 15, 2021 · 0 comments
Open

Examine all the things #14

lucko opened this issue Mar 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lucko
Copy link
Member

lucko commented Mar 15, 2021

Follow on from #2

It would be cool if you were able to pass "any old" java object and have it output useful info.

Of course, you can't always control the classes you work with, so it may not be feasible to add @Examine annotations or implement Examinable.

If the library could take a class & access it's fields through reflection, then format recursively, that would be neat.

Kinda in the same way that you can give pretty much anything to Gson and have it output sane-ish JSON.

Some customisation options / features that could be useful:

  • ignore/include transient
  • prevent infinite loops
  • max depth?
  • filter out specific field types? (e.g. tell the library to format a Location object but ignore any fields with the World type)
@kashike kashike added the enhancement New feature or request label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants