Package net.bytebuddy.dynamic.scaffold
Interface MethodGraph.Compiler
- All Known Implementing Classes:
MethodCallProxy.PrecomputedMethodGraph
,MethodGraph.Compiler.AbstractBase
,MethodGraph.Compiler.Default
,MethodGraph.Compiler.ForDeclaredMethods
,MethodGraph.Empty
- Enclosing interface:
MethodGraph
public static interface MethodGraph.Compiler
A compiler to produce a
MethodGraph
from a given type.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An abstract base implementation of a method graph compiler.static class
A default implementation of a method graph.static enum
A flat compiler that simply returns the methods that are declared by the instrumented type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MethodGraph.Compiler
The default compiler for compiling Java methods. -
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.
-
Field Details
-
DEFAULT
The default compiler for compiling Java methods.
-
-
Method Details
-
compile
Compiles the given type into a method graph considering the type to be the viewpoint.- 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.- 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.- 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.Compiles the given type into a method graph.- 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(TypeDefinition)
.