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:
java.io.Serializable
,java.lang.Comparable<MethodRegistry.Handler.ForAbstractMethod>
,InstrumentedType.Prepareable
,MethodRegistry.Handler
,MethodRegistry.Handler.Compiled
- Enclosing interface:
- MethodRegistry.Handler
public static enum MethodRegistry.Handler.ForAbstractMethod extends java.lang.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 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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForAbstractMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeWriter.MethodPool.Record
assemble(MethodDescription methodDescription, MethodAttributeAppender attributeAppender, Visibility visibility)
Assembles this compiled entry with a method attribute appender.MethodRegistry.Handler.Compiled
compile(Implementation.Target implementationTarget)
Compiles this handler.InstrumentedType
prepare(InstrumentedType instrumentedType)
Prepares a given instrumented type.static MethodRegistry.Handler.ForAbstractMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodRegistry.Handler.ForAbstractMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodRegistry.Handler.ForAbstractMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodRegistry.Handler.ForAbstractMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MethodRegistry.Handler.ForAbstractMethod c : MethodRegistry.Handler.ForAbstractMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodRegistry.Handler.ForAbstractMethod valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
prepare
public InstrumentedType prepare(InstrumentedType instrumentedType)
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
public MethodRegistry.Handler.Compiled compile(Implementation.Target implementationTarget)
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.
-
-