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 SuperMethod#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.
net.bytebuddy.implementation.MethodDelegation , net.bytebuddy.implementation.bind.annotation.TargetMethodAnnotationDrivenBinder
| Modifier and Type | Class and Description |
|---|---|
| public static enum | SuperMethod.
A binder for the |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this method instance should be cached.Indicates if the instance assigned to this parameter should be stored in a static field for reuse. |
| public boolean | Returns: true if a default method should be invoked if it is not ambiguous and no super class method is available.Indicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available. |
| public boolean | Returns: true if null should be assigned if no valid method can be assigned.Indicates that |
| public boolean | Returns: true if this method should be looked up using an java.security.AccessController.Indicates if the instance assigned to this parameter should be looked up using an |
| cached | back to summary |
|---|---|
| public boolean cached() Indicates if the instance assigned to this parameter should be stored in a static field for reuse.
| |
| fallbackToDefault | back to summary |
|---|---|
| public boolean fallbackToDefault() Indicates that the assigned method should attempt the invocation of an unambiguous default method if no super method is available.
| |
| nullIfImpossible | back to summary |
|---|---|
| public boolean nullIfImpossible() Indicates that
| |
| privileged | back to summary |
|---|---|
| public boolean privileged() Indicates if the instance assigned to this parameter should be looked up using an
| |
SuperMethod annotation.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | SuperMethod.
Loads the delegation method constant onto the stack. |
| Modifier and Type | Field and Description |
|---|---|
| private static final MethodDescription. | CACHED
A description of the |
| private static final MethodDescription. | FALLBACK_TO_DEFAULT
A description of the |
| public static final SuperMethod. | INSTANCE
The singleton instance. |
| private static final MethodDescription. | NULL_IF_IMPOSSIBLE
A description of the |
| private static final MethodDescription. | PRIVILEGED
A description of the |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public MethodDelegationBinder. | bind(AnnotationDescription.
The annotation that was cause for the delegation to this argument binder. annotation,The intercepted source method. source, ParameterDescription Tge target parameter that is subject to be bound to
intercepting the target, Implementation.source method.The target of the current implementation that is subject to this binding. implementationTarget,An assigner that can be used for applying the binding. assigner, Assigner.The typing to apply. typing |
| public Class | getHandledType()
The annotation type that is handled by this parameter binder.
|
| public static SuperMethod. | |
| public static SuperMethod. |
| CACHED | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| FALLBACK_TO_DEFAULT | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| INSTANCE | back to summary |
|---|---|
| public static final SuperMethod. The singleton instance. | |
| NULL_IF_IMPOSSIBLE | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| PRIVILEGED | back to summary |
|---|---|
| private static final MethodDescription. A description of the | |
| Binder | back to summary |
|---|---|
| private Binder() | |
| bind | back to summary |
|---|---|
| public MethodDelegationBinder. Creates a parameter binding for the given target parameter.
| |
| getHandledType | back to summary |
|---|---|
| public Class The annotation type that is handled by this parameter binder.
| |
| valueOf | back to summary |
|---|---|
| public static SuperMethod. | |
| values | back to summary |
|---|---|
| public static SuperMethod. | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | cached
|
| private final boolean | privileged
|
| private final Implementation. | specialMethodInvocation
The special method invocation that represents the super method call. |
| Access | Constructor and Description |
|---|---|
| protected | DelegationMethod(Implementation.
The special method invocation that represents the super method call. specialMethodInvocation,true if the method constant should be cached.true if this method should be looked up using an java.security.AccessController.Creates a new delegation method. |
| Modifier and Type | Method and Description |
|---|---|
| public StackManipulation. | apply(MethodVisitor
The method visitor used to write the method implementation to. methodVisitor, Implementation.The context of the current implementation. implementationContextImplements org. |
| public boolean | isValid()
Implements org. |
| cached | back to summary |
|---|---|
| private final boolean cached
| |
| privileged | back to summary |
|---|---|
| private final boolean privileged
| |
| specialMethodInvocation | back to summary |
|---|---|
| private final Implementation. The special method invocation that represents the super method call. | |
| DelegationMethod | back to summary |
|---|---|
| protected DelegationMethod(Implementation. Creates a new delegation method.
| |
| apply | back to summary |
|---|---|
| public StackManipulation. Implements org. Doc from org. Applies the stack manipulation that is described by this instance.
| |
| isValid | back to summary |
|---|---|
| public boolean isValid() Implements org. Doc from org. Determines if this stack manipulation is valid.
| |