Annotation Type TransformResult
-
@Retention(RUNTIME) @Target(METHOD) public @interface TransformResult
Used to indicate that the return type of a method should be transformed by calling a method on it, indicated by theTransformWithannotation.This annotation should be placed on the method with the least specific return type, if covariant return types are used.
The return type of the annotation, or a superclass/superinterface of it, must have a method annotated with
TransformWith, with a matchingvalue().
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringvalueGets the name used to match this annotation to aTransformWithannotation.
-
-
-
Element Detail
-
value
String value
Gets the name used to match this annotation to aTransformWithannotation.Changing this is only necessary when multiple
TransformWithannotations are present in the annotated method's return type's class.- Returns:
- The name to use
- Default:
- ""
-
-