https://github.com/bsless/burrito
Interactive development utility for Java interop in Clojure
https://github.com/bsless/burrito
clojure interactive interop repl
Last synced: 11 days ago
JSON representation
Interactive development utility for Java interop in Clojure
- Host: GitHub
- URL: https://github.com/bsless/burrito
- Owner: bsless
- License: other
- Created: 2020-04-15T16:32:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T16:35:26.000Z (about 6 years ago)
- Last Synced: 2026-02-16T19:30:01.656Z (3 months ago)
- Topics: clojure, interactive, interop, repl
- Language: Clojure
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Burrito
A Clojure utility tool for java interop interactive development.
## Usage
Add to your dev profile dependencies:
```clojure
[bsless/burrito "0.0.0-SNAPSHOT"]
```
### Wrap all methods
```clojure
(binding [*print-meta* true
*trim-class-type* true
*max-var-name-length* 1
*trim-return-types* true
*printable-primitive-types* true]
(doseq [e (wrap java.util.concurrent.ConcurrentLinkedDeque)]
(clojure.pprint/pprint e)))
```
### Wrap constructor
```clojure
(-> java.util.HashMap
wrapping-candidates
collapse-candidates
(with-constructor java.util.HashMap)
emit-constructor)
```
### Generate a list of all imports
```clojure
(imports java.util.HashMap)
```
## License
Copyright © 2020 Ben Sless
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.