Annotation Interface SuperCallHandle
Parameters that are annotated with this annotation will be assigned a
java.lang.invoke.MethodHandle
invoking
the super
implementation.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A binder for handling theSuperCallHandle
annotation. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Determines if the method handle should invoke the default method to the intercepted method if a common super method invocation is not applicable.boolean
Assignsnull
to the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.
-
Element Details
-
fallbackToDefault
boolean fallbackToDefaultDetermines if the method handle should invoke the default method to the intercepted method if a common super method invocation is not applicable. For this to be possible, the default method must not be ambiguous.- Returns:
true
if the invocation should fall back to invoking the default method.
- Default:
true
-
nullIfImpossible
boolean nullIfImpossibleAssignsnull
to the parameter if it is impossible to invoke the super method or a possible dominant default method, if permitted.- Returns:
true
if anull
constant should be assigned to this parameter in case that a legal binding is impossible.
- Default:
false
-