Libraryless. Click here for Pure Java version (95L/1K).
1 | static L<Field> allFieldObjects_dontMakeAccessible(O o) { |
2 | new L<Field> fields; |
3 | Class _c = _getClass(o); |
4 | do { |
5 | addAll(fields, _c.getDeclaredFields()); |
6 | _c = _c.getSuperclass(); |
7 | } while (_c != null); |
8 | return fields; |
9 | } |
Began life as a copy of #1013088
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033883 |
Snippet name: | allFieldObjects_dontMakeAccessible - get field objects including base classes |
Eternal ID of this version: | #1033883/1 |
Text MD5: | a9bc2fd74a8168194ae41f0b175139f5 |
Transpilation MD5: | 2896e534fcfbb20cc1cabb2f325d53ca |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-08 21:41:29 |
Source code size: | 238 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 156 / 229 |
Referenced in: | [show references] |