Skip to content

Conversation

@timmattison
Copy link
Contributor

I ran into some trouble a few months back with some code I found to convert from a class to the JBBP representation. I added an interface with default methods called Binary that you can add to a class. When you add it to a class you can then call getFormat() on it to get the JBBP format string for the class.

I used Java 8 for this so I could use default methods and not force every class to extend my base class.

I also updated the gitignore to ignore my Java target directories and fixed a test that wasn't compiling for me. I'm not sure I did the right thing for the test but otherwise I couldn't build it.

@raydac
Copy link
Owner

raydac commented Jul 25, 2018

did you see new class added no so long time ago in 1.4.0-SNAPSHOT, the class is titled JBBPDslBuilder? it has method to convert annotated classes into JBBP DSL text, take a look at

@timmattison
Copy link
Contributor Author

I didn’t see that. I found a snippet somewhere that did the conversion but it broke in a few places so I put this together.

If this class you’re working on covers this then maybe this PR should be closed.

@raydac raydac closed this Jul 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants