{"id":21439477,"url":"https://github.com/missingfaktor/gonbe","last_synced_at":"2025-03-17T00:17:08.727Z","repository":{"id":3674255,"uuid":"4743616","full_name":"missingfaktor/gonbe","owner":"missingfaktor","description":"A terse reflection API for Java","archived":false,"fork":false,"pushed_at":"2012-06-22T16:37:28.000Z","size":132,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T10:11:20.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/missingfaktor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-21T19:49:05.000Z","updated_at":"2021-02-25T23:02:23.000Z","dependencies_parsed_at":"2022-08-19T01:00:24.291Z","dependency_job_id":null,"html_url":"https://github.com/missingfaktor/gonbe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fgonbe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fgonbe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fgonbe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/missingfaktor%2Fgonbe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/missingfaktor","download_url":"https://codeload.github.com/missingfaktor/gonbe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950939,"owners_count":20373665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T00:41:54.920Z","updated_at":"2025-03-17T00:17:08.707Z","avatar_url":"https://github.com/missingfaktor.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"gonbe\n=====\n\nA terse reflection API for Java\n--------------------------------\ngonbe is a simple wrapper for the java.lang.reflect package.\n\nThis project is similar to [jOOR](https://github.com/jOOQ/jOOR), but with the following key differences:\n* `ObjectMirror` and `ClassMirror` are represented with separate types, whereas jOOR conflates the two (under a name `Reflect`).\n* The `get`, `set`, and `call` methods on `Mirror` have their m-suffixed counterparts which wrap the output in `Mirror`. e.g. `Mirror.on(\"hello\").call(\"charAt\", 0)` returns `'h'` whereas `Mirror.on(\"hello\").callM(\"charAt\", 0)` returns `Mirror.on('h')`.\n* The implementation makes extensive use of [functionaljava](http://functionaljava.org/), though that's irrelevant from the user point of view.\n\nExample\n--------\n\n    // With java.lang.reflect:\n    PrivateObject privateObject = new PrivateObject(\"The Private Value\");\n    Class\u003c?\u003e[] paramTypes = { int.class, String.class };\n    Object[] args = { 3, \"Hello\" };\n    Method privateStringMethod = PrivateObject.class.getDeclaredMethod(\"getPrivateString\", paramTypes);\n    privateStringMethod.setAccessible(true);\n    String returnValue = (String) privateStringMethod.invoke(privateObject, args);\n\n    // With gonbe:\n    PrivateObject privateObject = new PrivateObject(\"The Private Value\");\n    String returnValue = Mirror.on(privateObject).call(\"getPrivateString\", 3, \"hello\");\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissingfaktor%2Fgonbe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmissingfaktor%2Fgonbe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmissingfaktor%2Fgonbe/lists"}