Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Annotation Processor #6

Open
KangoV opened this issue May 6, 2024 · 0 comments
Open

Use Annotation Processor #6

KangoV opened this issue May 6, 2024 · 0 comments

Comments

@KangoV
Copy link

KangoV commented May 6, 2024

Using annotation processors at compile time would simplify the whole process and you could also immediately see changes in the generated code in your ide.

For example:

@Passport(link="libforeign")
public interface Linked {
   int string_length(String s);
   double sumArrD(double[] arr, int count);
}

Styles could be added to modify how the generated class is named etc. See how styling is implemented in the Immutibles library as an example to how this could be achieved.

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

No branches or pull requests

1 participant