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 aMethodGraph
from a given type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MethodGraph.Compiler.AbstractBase
An abstract base implementation of a method graph compiler.static class
MethodGraph.Compiler.Default<T>
A default implementation of a method graph.static class
MethodGraph.Compiler.ForDeclaredMethods
A flat compiler that simply returns the methods that are declared by the instrumented type.
-
Field Summary
Fields Modifier and Type Field Description static MethodGraph.Compiler
DEFAULT
The default compiler for compiling Java methods.
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Field Detail
-
DEFAULT
static final MethodGraph.Compiler DEFAULT
The default compiler for compiling Java methods.
-
-
Method Detail
-
compile
MethodGraph.Linked compile(TypeDescription typeDescription)
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
MethodGraph.Linked compile(TypeDefinition typeDefinition, TypeDescription viewPoint)
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.
-
-