Alexander Söderberg
d681ba5840
feat: annotation string processors ( #353 )
...
adds a system for processing strings found in annotations before they're used by AnnotationParser
implements #347
Also, because we're using "-Werror", the code won't actually build (and thus tests won't work) using JDK18. To remedy this, a bunch of @SuppressWarnings("serial")s has been added to the exceptions. We don't serialize exceptions, and they're in fact non-serializable because of their members, so this is the appropriate solution (well, the better solution would be to make them serializable, but that's outside the scope of this PR).
2022-06-18 22:52:58 -07:00
zml
ed7b7569a8
build: switch to spotless ( #355 )
...
* build: switch to spotless
add in some other basic formatting steps that allow for easy
auto-correction
* build: lint text files as well
* chore: remove license headers from package-info files
spotless can't verify these
2022-06-18 22:52:58 -07:00
Jason Penilla
708d11854e
Fix import order
2021-12-02 02:04:43 -08:00
Pasqual Koschmieder
526ef2af61
Allow parser parameter annotations for flags as well ( #315 )
2021-12-02 02:04:43 -08:00
Frank van der Heijden
730e78e212
Make CommandMethod applicable to class
2021-12-02 02:04:43 -08:00
alexander.soderg
d0162c3317
Annotations: Add test for multi-alias commands
2021-12-02 02:04:43 -08:00
Alexander Söderberg
1600ef16c3
:clock: 2021 let's go!!!
2021-01-16 09:58:46 +01:00
Alexander Söderberg
9ed40a698a
✨ Allow interception of command builders based on annotations in AnnotationParser
...
Fixes #179
2020-12-18 19:49:57 +01:00
Alexander Söderberg
6cc3a21619
✨ Allow default suggestion providers in @Parser
2020-12-18 19:49:57 +01:00
Alexander Söderberg
e5a35afb8a
✨ Add @Parser annotated methods
...
Fixes #166 . Also fixes #180 .
2020-12-18 19:49:57 +01:00
Alexander Söderberg
ab366be24d
:sparkes: Add @Suggestions annotated methods
2020-12-18 19:49:57 +01:00
Irmo van den Berge
e0216dec9f
Add support for dashes and underscores in annotations parser syntax
...
Also added a test for the parser, as it was missing
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2020-12-18 19:49:57 +01:00
broccolai
237eda75ef
Reformat project
2020-12-07 20:05:45 +01:00
Irmo van den Berge
1c7ebe0957
Fix junit test error when named suggestion provider runs before method construction
...
Parsing should occur in the @BeforeAll or this test fails sporadically
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2020-12-07 20:05:45 +01:00
Alexander Söderberg
c2065aabd1
✨ Add parameter injectors ( #104 )
2020-12-07 20:05:45 +01:00
Alexander Söderberg
a68bc0bea7
✨ Allow for recursive annotations ( #97 )
...
Co-authored-by: Mariell <proximyst@proximyst.com>
2020-10-24 19:52:44 +02:00
Alexander Söderberg
3c7bd63f07
✨ Add named suggestion providers
...
This allows for pre-registration of command suggestion providers, that can then be used in annotated command methods.
2020-10-24 19:52:44 +02:00
Alexander Söderberg
2aac3980d5
♻️ Reformat + Update .editorconfig
2020-10-07 22:47:48 +02:00
Alexander Söderberg
c67619e5da
✨ Add flag support to the annotation system.
2020-10-02 21:08:32 +02:00
Alexander Söderberg
26f11e3a7e
🚚 More removal of javax annotations
2020-09-30 10:40:44 +02:00
Alexander Söderberg
e033ee88db
⚡ Update LICENSE text
2020-09-27 23:30:13 +02:00
Alexander Söderberg
c74cda3a0f
🚚 Switch namespace
2020-09-27 23:04:15 +02:00
Alexander Söderberg
c980adac3b
Add command proxies
2020-09-25 02:20:04 +02:00
Alexander Söderberg
56623160e1
Clean up annotation parsing.
2020-09-22 13:13:01 +02:00
Alexander Söderberg
c336a2d7e8
Add named parsers
2020-09-20 21:36:44 +02:00
Alexander Söderberg
f1d4e7865d
Add Velocity module
2020-09-19 15:50:44 +02:00
Alexander Söderberg
ccd0e8ae0e
Clean up generics (and get rid of the type parameter for command meta data)
2020-09-19 12:14:09 +02:00
Alexander Söderberg
3f852d068e
Improve the annotated command method code and add more supported annotations
2020-09-18 21:30:00 +02:00
Alexander Söderberg
1e58ca3f13
More progress on command method parsing
2020-09-18 14:34:14 +02:00
Alexander Söderberg
da68a6bc87
Test the syntax parsing method
2020-09-17 22:45:12 +02:00