Package net.bytebuddy.dynamic.scaffold
Enum 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:
java.io.Serializable
,java.lang.Comparable<MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod>
,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 java.lang.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 Classes Modifier and Type Class Description protected static class
MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token
A token that identifies a Java method's type by its parameter types and return type.-
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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForJVMMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.Token
harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.static MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod[] 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 (MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod c : MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodGraph.Compiler.Default.Harmonizer.ForJVMMethod 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
-
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.
-
-