Class RepositoryParserUtils.ParamAnnotationParanamer
java.lang.Object
com.thoughtworks.paranamer.AnnotationParanamer
io.github.blyznytsiaorg.bibernate.dao.utils.RepositoryParserUtils.ParamAnnotationParanamer
- All Implemented Interfaces:
com.thoughtworks.paranamer.Paranamer
- Enclosing class:
RepositoryParserUtils
private static class RepositoryParserUtils.ParamAnnotationParanamer
extends com.thoughtworks.paranamer.AnnotationParanamer
Custom implementation of
AnnotationParanamer to handle the @Param annotation.-
Nested Class Summary
Nested classes/interfaces inherited from class com.thoughtworks.paranamer.AnnotationParanamer
com.thoughtworks.paranamer.AnnotationParanamer.Jsr330Helper -
Field Summary
Fields inherited from class com.thoughtworks.paranamer.AnnotationParanamer
__PARANAMER_DATAFields inherited from interface com.thoughtworks.paranamer.Paranamer
EMPTY_NAMES -
Constructor Summary
ConstructorsConstructorDescriptionParamAnnotationParanamer(com.thoughtworks.paranamer.Paranamer fallback) Constructs a new ParamAnnotationParanamer with the specified fallback paranamer. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetNamedValue(Annotation ann) Retrieves the named value from the @Param annotation.protected booleanisNamed(Annotation ann) Checks if the given annotation is of type @Param.Methods inherited from class com.thoughtworks.paranamer.AnnotationParanamer
lookupParameterNames, lookupParameterNames
-
Constructor Details
-
ParamAnnotationParanamer
public ParamAnnotationParanamer(com.thoughtworks.paranamer.Paranamer fallback) Constructs a new ParamAnnotationParanamer with the specified fallback paranamer.- Parameters:
fallback- The fallback paranamer.
-
-
Method Details
-
getNamedValue
Retrieves the named value from the @Param annotation.- Overrides:
getNamedValuein classcom.thoughtworks.paranamer.AnnotationParanamer- Parameters:
ann- The annotation.- Returns:
- The named value if the annotation is of type @Param, otherwise null.
-
isNamed
Checks if the given annotation is of type @Param.- Overrides:
isNamedin classcom.thoughtworks.paranamer.AnnotationParanamer- Parameters:
ann- The annotation.- Returns:
- True if the annotation is of type @Param, otherwise false.
-