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

Generate Random Class With Methods #13

Open
volodya-lombrozo opened this issue Nov 29, 2023 · 1 comment
Open

Generate Random Class With Methods #13

volodya-lombrozo opened this issue Nov 29, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers syntax This issues are related to syntax generation

Comments

@volodya-lombrozo
Copy link
Owner

I as a developer I would like to test the compilation of java classes with different methods (static, instance, final and so on)

@volodya-lombrozo
Copy link
Owner Author

In order to add simple methods support, you might need to modify the Java8ReducedLexer.g4 grammar. This change will alter the output of the RandomJavaClass. The full Java8Lexer.g4 grammar might also be helpful as a guide. For now, it will be sufficient to add methods with an empty body:

public add(int a, int b) {}

private final sub(long a, long b) {}

public static _aH_so34d_(int[] value) {}

We also shouldn't forget to add unit tests for this case. Additionally, you might encounter some performance issues along the way, which would be better to log directly in the issues or create another puzzle for it.

@volodya-lombrozo volodya-lombrozo added enhancement New feature or request good first issue Good for newcomers syntax This issues are related to syntax generation labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers syntax This issues are related to syntax generation
Projects
None yet
Development

No branches or pull requests

1 participant