Package net.bytebuddy.dynamic.scaffold
Enum MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod
- java.lang.Object
-
- java.lang.Enum<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod>
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod>
,MethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token>
- Enclosing interface:
- MethodGraph.Compiler.Default.Harmonizer<S>
public static enum MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod extends java.lang.Enum<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod> implements MethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token>
A harmonizer for the Java programming language that identifies a method by its parameter types only.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token
A token that identifies a Java method's type by its parameter types only.-
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
ForJavaMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token
harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.static MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod[]
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.ForJavaMethod INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod[] 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.ForJavaMethod c : MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.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.ForJavaMethod 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.ForJavaMethod.Token harmonize(MethodDescription.TypeToken typeToken)
Harmonizes the given type token.- Specified by:
harmonize
in interfaceMethodGraph.Compiler.Default.Harmonizer<MethodGraph.Compiler.Default.Harmonizer.ForJavaMethod.Token>
- Parameters:
typeToken
- The type token to harmonize.- Returns:
- A token representing the given type token.
-
-