{"id":21358542,"url":"https://github.com/logicblocks/exegesis","last_synced_at":"2026-05-20T19:33:40.470Z","repository":{"id":47745110,"uuid":"94486211","full_name":"logicblocks/exegesis","owner":"logicblocks","description":"Clojure library for interrogating Java types for annotation information.","archived":false,"fork":false,"pushed_at":"2024-04-16T12:03:31.000Z","size":191,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-04-16T15:16:04.904Z","etag":null,"topics":["annotation","annotation-information","annotation-processing","annotations","clojure","clojure-library","interrogating-java-types","java"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logicblocks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-06-15T23:22:12.000Z","updated_at":"2024-04-23T12:48:29.079Z","dependencies_parsed_at":"2024-04-11T12:28:33.428Z","dependency_job_id":"d20ebc8f-39b9-4f1a-8ead-89080e26c1b2","html_url":"https://github.com/logicblocks/exegesis","commit_stats":{"total_commits":52,"total_committers":2,"mean_commits":26.0,"dds":0.07692307692307687,"last_synced_commit":"ebc6a8fb0025d37d64aee769af7fece28b090a63"},"previous_names":["tobyclemson/exegesis"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicblocks%2Fexegesis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicblocks%2Fexegesis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicblocks%2Fexegesis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logicblocks%2Fexegesis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logicblocks","download_url":"https://codeload.github.com/logicblocks/exegesis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830955,"owners_count":20354856,"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":["annotation","annotation-information","annotation-processing","annotations","clojure","clojure-library","interrogating-java-types","java"],"created_at":"2024-11-22T05:18:58.352Z","updated_at":"2025-12-12T01:14:20.908Z","avatar_url":"https://github.com/logicblocks.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exegesis\n\n[![Clojars Project](https://img.shields.io/clojars/v/io.logicblocks/exegesis.svg)](https://clojars.org/io.logicblocks/exegesis)\n[![Clojars Downloads](https://img.shields.io/clojars/dt/io.logicblocks/exegesis.svg)](https://clojars.org/io.logicblocks/exegesis)\n[![GitHub Contributors](https://img.shields.io/github/contributors-anon/logicblocks/exegesis.svg)](https://github.com/logicblocks/exegesis/graphs/contributors)\n\nClojure library for interrogating Java types for annotation information.\n\n## Installation\n\nAdd the following dependency to your `project.clj` file:\n\n    [io.logicblocks/exegesis \"0.4.2\"]\n\n## Usage\n\nGiven an annotated Java class like the following:\n\n```java\n@TypeAnnotationWithElements(first = \"some-value\")\n@TypeAnnotationWithNoElements\npublic class TestClass {\n    @FieldAnnotationWithNoElements\n    private String thing1;\n\n    @FieldAnnotationWithNoElements\n    @FieldAnnotationWithElements(first = 20)\n    public Integer thing2;\n\n    @FieldAnnotationWithElements(first = 30)\n    protected Float thing3;\n\n    Boolean thing4;\n\n    @MethodAnnotationWithNoElements\n    @MethodAnnotationWithElements(first = 20)\n    protected void doFirstThing() {}\n\n    @MethodAnnotationWithNoElements\n    public void doSecondThing() {}\n\n    private void doThirdThing() {}\n\n    void doThingWithParameters(\n            @ParameterAnnotationWithNoElements\n            @ParameterAnnotationWithElements(name = \"first\")\n            String first,\n\n            @ParameterAnnotationWithElements(name = \"second\", priority = 10)\n            Integer second,\n\n            String third) {}\n}\n```\n\nthen, to obtain details of the annotations for the type:\n\n```clojure\n(require '[exegesis.core :refer [annotation-info]])\n(import '[TestClass]\n\n(annotation-info TestClass)\n=\u003e\n{:type\n {:annotations\n  #{{:instance\n     #object[com.sun.proxy.$Proxy2 0x1a003b32 \"@exegesis.TypeAnnotationWithNoElements()\"],\n     :type exegesis.TypeAnnotationWithNoElements,\n     :elements #{}}\n    {:instance\n     #object[com.sun.proxy.$Proxy1 0x449128f7 \"@exegesis.TypeAnnotationWithElements(first=some-value, second=some-default)\"],\n     :type exegesis.TypeAnnotationWithElements,\n     :elements\n     #{{:name second, :value \"some-default\"}\n       {:name first, :value \"some-value\"}}}}},\n :fields\n #{{:name thing2,\n    :annotations\n    #{{:instance\n       #object[com.sun.proxy.$Proxy8 0x6f40b2d7 \"@exegesis.FieldAnnotationWithElements(first=20, second=)\"],\n       :type exegesis.FieldAnnotationWithElements,\n       :elements #{{:name first, :value 20} {:name second, :value \"\"}}}\n      {:instance\n       #object[com.sun.proxy.$Proxy7 0x452b0711 \"@exegesis.FieldAnnotationWithNoElements()\"],\n       :type exegesis.FieldAnnotationWithNoElements,\n       :elements #{}}}}\n   {:name thing3,\n    :annotations\n    #{{:instance\n       #object[com.sun.proxy.$Proxy8 0x700c3c05 \"@exegesis.FieldAnnotationWithElements(first=30, second=)\"],\n       :type exegesis.FieldAnnotationWithElements,\n       :elements\n       #{{:name second, :value \"\"} {:name first, :value 30}}}}}\n   {:name thing1,\n    :annotations\n    #{{:instance\n       #object[com.sun.proxy.$Proxy7 0x3db862ff \"@exegesis.FieldAnnotationWithNoElements()\"],\n       :type exegesis.FieldAnnotationWithNoElements,\n       :elements #{}}}}\n   {:name thing4, :annotations #{}}},\n :methods\n #{{:name doThirdThing, :annotations #{}, :parameters []}\n   {:name doThingWithParameters,\n    :annotations #{},\n    :parameters\n    [#{{:instance\n        #object[com.sun.proxy.$Proxy6 0x77176cdd \"@exegesis.ParameterAnnotationWithElements(priority=0, name=first)\"],\n        :type exegesis.ParameterAnnotationWithElements,\n        :elements\n        #{{:name priority, :value 0} {:name name, :value \"first\"}}}\n       {:instance\n        #object[com.sun.proxy.$Proxy5 0x73155d90 \"@exegesis.ParameterAnnotationWithNoElements()\"],\n        :type exegesis.ParameterAnnotationWithNoElements,\n        :elements #{}}}\n     #{{:instance\n        #object[com.sun.proxy.$Proxy6 0x71075c64 \"@exegesis.ParameterAnnotationWithElements(priority=10, name=second)\"],\n        :type exegesis.ParameterAnnotationWithElements,\n        :elements\n        #{{:name priority, :value 10} {:name name, :value \"second\"}}}}\n     #{}]}\n   {:name doFirstThing,\n    :annotations\n    #{{:instance\n       #object[com.sun.proxy.$Proxy4 0x53e5811e \"@exegesis.MethodAnnotationWithElements(first=20, second=)\"],\n       :type exegesis.MethodAnnotationWithElements,\n       :elements #{{:name first, :value 20} {:name second, :value \"\"}}}\n      {:instance\n       #object[com.sun.proxy.$Proxy3 0x8fd2c52 \"@exegesis.MethodAnnotationWithNoElements()\"],\n       :type exegesis.MethodAnnotationWithNoElements,\n       :elements #{}}},\n    :parameters []}\n   {:name doSecondThing,\n    :annotations\n    #{{:instance\n       #object[com.sun.proxy.$Proxy3 0x7878440d \"@exegesis.MethodAnnotationWithNoElements()\"],\n       :type exegesis.MethodAnnotationWithNoElements,\n       :elements #{}}},\n    :parameters []}}}\n```\n\n## License\n\nCopyright \u0026copy; 2021 LogicBlocks\n\nDistributed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicblocks%2Fexegesis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogicblocks%2Fexegesis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogicblocks%2Fexegesis/lists"}