Package net.bytebuddy.dynamic.scaffold
Enum Class MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod
java.lang.Object
java.lang.Enum<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod>
net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod
- All Implemented Interfaces:
Serializable
,Comparable<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod>
,Constable
,MethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token>
- Enclosing interface:
MethodGraph.Compiler.Default.Harmonizer<S>
public static enum MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod
extends Enum<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod>
implements MethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token>
A harmonizer for the Java virtual machine's method dispatching rules that identifies a method by its parameter types and return type.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
A token that identifies a Java method's type by its parameter types and return type.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.MethodGraph.Compiler.Default.Harmonizer
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod, MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionharmonize
(MethodDescription.TypeToken typeToken) Harmonizes the given type token.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForJVMMethod
private ForJVMMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
harmonize
public MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token harmonize(MethodDescription.TypeToken typeToken) Harmonizes the given type token.- Specified by:
harmonize
in interfaceMethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token>
- Parameters:
typeToken
- The type token to harmonize.- Returns:
- A token representing the given type token.
-