Package xyz.rk0cc.josev.constraint
Annotation Interface SemVerConstraintParser
An
Annotation
that allowing a subclass of SemVerConstraint
can be parsed by
SemVerConstraint.parse(Class, String)
.- Since:
- 1.0.0
- See Also:
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Allow annotated class can be parsed bySemVerConstraint.parse(Class, String)
.Define which public static method of annotated class will be used when applyingSemVerConstraint.parse(Class, String)
.
-
Element Details
-
enabled
boolean enabledAllow annotated class can be parsed bySemVerConstraint.parse(Class, String)
.- Returns:
true
if enable.
- Default:
- true
-
parserMethodName
Define which public static method of annotated class will be used when applyingSemVerConstraint.parse(Class, String)
.
The parser must return the same type of the located class with aString
as parameter.- Returns:
- Method name of the parser, default uses
"parse"
.
- Default:
- "parse"
-