Enum MethodCallProxy.PrecomputedMethodGraph
- java.lang.Object
-
- java.lang.Enum<MethodCallProxy.PrecomputedMethodGraph>
-
- net.bytebuddy.implementation.auxiliary.MethodCallProxy.PrecomputedMethodGraph
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodCallProxy.PrecomputedMethodGraph>
,MethodGraph.Compiler
- Enclosing class:
- MethodCallProxy
protected static enum MethodCallProxy.PrecomputedMethodGraph extends java.lang.Enum<MethodCallProxy.PrecomputedMethodGraph> implements MethodGraph.Compiler
A precomputed method graph that only displays the methods that are relevant for creating a method call proxy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
MethodGraph.Compiler.AbstractBase, MethodGraph.Compiler.Default<T>, MethodGraph.Compiler.ForDeclaredMethods
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
DEFAULT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodGraph.Linked
compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Compiles the given type into a method graph.MethodGraph.Linked
compile(TypeDescription typeDescription)
Compiles the given type into a method graph considering the type to be the viewpoint.static MethodCallProxy.PrecomputedMethodGraph
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodCallProxy.PrecomputedMethodGraph[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodCallProxy.PrecomputedMethodGraph INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodCallProxy.PrecomputedMethodGraph[] 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 (MethodCallProxy.PrecomputedMethodGraph c : MethodCallProxy.PrecomputedMethodGraph.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodCallProxy.PrecomputedMethodGraph 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
-
compile
public MethodGraph.Linked compile(TypeDescription typeDescription)
Description copied from interface:MethodGraph.Compiler
Compiles the given type into a method graph considering the type to be the viewpoint.- Specified by:
compile
in interfaceMethodGraph.Compiler
- Parameters:
typeDescription
- The type to be compiled.- Returns:
- A linked method graph representing the given type.
-
compile
public MethodGraph.Linked compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
Description copied from interface:MethodGraph.Compiler
Compiles the given type into a method graph.- Specified by:
compile
in interfaceMethodGraph.Compiler
- Parameters:
typeDefinition
- The type to be compiled.viewPoint
- The view point that determines the method's visibility.- Returns:
- A linked method graph representing the given type.
-
-