Annotation Interface SuperMethod
A parameter with this annotation is assigned an instance of
Method
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
. The method is declared as public
and is invokable unless the instrumented type itself is not visible. Note that
requesting such a method exposes the super method to reflection.- See Also:
-
Nested Class Summary
Nested Classes -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Indicates if the instance assigned to this parameter should be stored in a static field for reuse.boolean
Indicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available.boolean
Indicates thatnull
should be assigned to this parameter if no super method is invokable.boolean
Indicates if the instance assigned to this parameter should be looked up using anjava.security.AccessController
.
-
Element Details
-
cached
boolean cachedIndicates if the instance assigned to this parameter should be stored in a static field for reuse.- Returns:
true
if this method instance should be cached.
- Default:
true
-
privileged
boolean privilegedIndicates if the instance assigned to this parameter should be looked up using anjava.security.AccessController
.- Returns:
true
if this method should be looked up using anjava.security.AccessController
.
- Default:
false
-
fallbackToDefault
boolean fallbackToDefaultIndicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available.- Returns:
true
if a default method should be invoked if it is not ambiguous and no super class method is available.
- Default:
true
-
nullIfImpossible
boolean nullIfImpossibleIndicates thatnull
should be assigned to this parameter if no super method is invokable.- Returns:
true
ifnull
should be assigned if no valid method can be assigned.
- Default:
false
-