Package net.bytebuddy.dynamic.scaffold
Enum MethodRegistry.Handler.ForAbstractMethod
java.lang.Object
java.lang.Enum<MethodRegistry.Handler.ForAbstractMethod>
net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler.ForAbstractMethod
- All Implemented Interfaces:
Serializable
,Comparable<MethodRegistry.Handler.ForAbstractMethod>
,java.lang.constant.Constable
,InstrumentedType.Prepareable
,MethodRegistry.Handler
,MethodRegistry.Handler.Compiled
- Enclosing interface:
MethodRegistry.Handler
public static enum MethodRegistry.Handler.ForAbstractMethod
extends Enum<MethodRegistry.Handler.ForAbstractMethod>
implements MethodRegistry.Handler, MethodRegistry.Handler.Compiled
A handler for defining an abstract or native method.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.InstrumentedType.Prepareable
InstrumentedType.Prepareable.NoOp
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodRegistry.Handler
MethodRegistry.Handler.Compiled, MethodRegistry.Handler.ForAbstractMethod, MethodRegistry.Handler.ForAnnotationValue, MethodRegistry.Handler.ForImplementation, MethodRegistry.Handler.ForVisibilityBridge
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble
(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.compile
(Implementation.Target implementationTarget) Compiles this handler.prepare
(InstrumentedType instrumentedType) Prepares a given instrumented type.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForAbstractMethod
private ForAbstractMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
prepare
Prepares a given instrumented type.- Specified by:
prepare
in interfaceInstrumentedType.Prepareable
- Parameters:
instrumentedType
- The instrumented type in its current form.- Returns:
- The prepared instrumented type.
-
compile
Compiles this handler.- Specified by:
compile
in interfaceMethodRegistry.Handler
- Parameters:
implementationTarget
- The implementation target to compile this handler for.- Returns:
- A compiled handler.
-
assemble
public TypeWriter.MethodPool.Record assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility) Assembles this compiled entry with a method attribute appender.- Specified by:
assemble
in interfaceMethodRegistry.Handler.Compiled
- Parameters:
methodDescription
- The method description to apply with this handler.attributeAppender
- The method attribute appender to apply together with this handler.visibility
- The represented method's minimum visibility.- Returns:
- A method pool entry representing this handler and the given attribute appender.
-