Annotation Interface SourceParser
Registers a source parser for a specific method that give that class access to it
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether this variant should ignore case for its labelbooleanWhether this variant should lazy map for its labelintThe prioritylongThe max age of the result in milliseconds When the result is older it will be discarded next time someone use the parser When set to -1 it will never be discarded When set to 0 it will always be discarded
-
Element Details
-
keyword
String keywordThe keyword that triggers the parser -
priority
int priorityThe priority- Default:
0
-
clazz
Class<?> clazzThe return type of the parser -
resultMaxAgeInMills
long resultMaxAgeInMillsThe max age of the result in milliseconds When the result is older it will be discarded next time someone use the parser When set to -1 it will never be discarded When set to 0 it will always be discarded- Default:
0L
-
ignoreCase
@AvailableSince("0.0.30") boolean ignoreCaseWhether this variant should ignore case for its label- Default:
false
-
lax
@AvailableSince("0.0.30") boolean laxWhether this variant should lazy map for its label- Default:
false
-