Annotation Interface SuperMethodHandle
A parameter with this annotation is assigned an instance of
java.lang.invoke.MethodHandle which invokes the super
implementation of this method. If such a method is not available, this annotation causes that this delegation target cannot
be bound unless nullIfImpossible() is set to true.- See Also:
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available.booleanIndicates thatnullshould be assigned to this parameter if no super method is invokable.
-
Element Details
-
fallbackToDefault
boolean fallbackToDefaultIndicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available.- Returns:
trueif a default method should be invoked if it is not ambiguous and no super class method is available.
- Default:
true
-
nullIfImpossible
boolean nullIfImpossibleIndicates thatnullshould be assigned to this parameter if no super method is invokable.- Returns:
trueifnullshould be assigned if no valid method can be assigned.
- Default:
false
-