Annotation Interface TransformResult
Used to indicate that the return type of a method should be transformed by
calling a method on it, indicated by the
TransformWith
annotation.
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 matching
value()
.
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionGets the name used to match this annotation to aTransformWith
annotation.
-
Element Details
-
value
String valueGets the name used to match this annotation to aTransformWith
annotation.Changing this is only necessary when multiple
TransformWith
annotations are present in the annotated method's return type's class.- Returns:
- The name to use
- Default:
""
-