Package net.bytebuddy.dynamic.scaffold
Enum MethodGraph.Empty
- All Implemented Interfaces:
Serializable
,Comparable<MethodGraph.Empty>
,java.lang.constant.Constable
,MethodGraph
,MethodGraph.Compiler
,MethodGraph.Linked
- Enclosing interface:
MethodGraph
public static enum MethodGraph.Empty
extends Enum<MethodGraph.Empty>
implements MethodGraph.Linked, MethodGraph.Compiler
A canonical implementation of an empty method graph.
-
Nested Class Summary
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
MethodGraph.Compiler, MethodGraph.Empty, MethodGraph.Linked, MethodGraph.Node, MethodGraph.NodeList, MethodGraph.Simple
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
MethodGraph.Compiler.AbstractBase, MethodGraph.Compiler.Default<T>, MethodGraph.Compiler.ForDeclaredMethods
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Linked
MethodGraph.Linked.Delegation
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler
DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile
(TypeDefinition typeDefinition) Compiles the given type into a method graph considering the type to be the viewpoint.compile
(TypeDefinition typeDefinition, TypeDescription viewPoint) Compiles the given type into a method graph.compile
(TypeDescription typeDescription) Deprecated.compile
(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.getInterfaceGraph
(TypeDescription typeDescription) Returns a graph representing the view on this represented type's directly implemented interface type.Returns a graph representing the view on this represented type's super type.Lists all nodes of this method graph.Locates a node in this graph which represents the provided method token.static MethodGraph.Empty
Returns the enum constant of this type with the specified name.static MethodGraph.Empty[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Empty
private Empty()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
locate
Locates a node in this graph which represents the provided method token.- Specified by:
locate
in interfaceMethodGraph
- Parameters:
token
- A method token that represents the method to be located.- Returns:
- The node representing the given token.
-
listNodes
Lists all nodes of this method graph.- Specified by:
listNodes
in interfaceMethodGraph
- Returns:
- A list of all nodes of this method graph.
-
getSuperClassGraph
Returns a graph representing the view on this represented type's super type.- Specified by:
getSuperClassGraph
in interfaceMethodGraph.Linked
- Returns:
- A graph representing the view on this represented type's super type.
-
getInterfaceGraph
Returns a graph representing the view on this represented type's directly implemented interface type.- Specified by:
getInterfaceGraph
in interfaceMethodGraph.Linked
- Parameters:
typeDescription
- The interface type for which a view is to be returned.- Returns:
- A graph representing the view on this represented type's directly implemented interface type.
-
compile
Compiles the given type into a method graph considering the type to be the viewpoint.- Specified by:
compile
in interfaceMethodGraph.Compiler
- Parameters:
typeDefinition
- The type to be compiled.- Returns:
- A linked method graph representing the given type.
-
compile
Deprecated.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
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.
-
compile
@Deprecated public MethodGraph.Linked compile(TypeDescription typeDefinition, TypeDescription viewPoint) Deprecated.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.
-