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.CompilerA compiler to produce aMethodGraphfrom a given type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMethodGraph.Compiler.AbstractBaseAn abstract base implementation of a method graph compiler.static classMethodGraph.Compiler.Default<T>A default implementation of a method graph.static classMethodGraph.Compiler.ForDeclaredMethodsA flat compiler that simply returns the methods that are declared by the instrumented type.
-
Field Summary
Fields Modifier and Type Field Description static MethodGraph.CompilerDEFAULTThe default compiler for compiling Java methods.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodGraph.Linkedcompile(TypeDefinition typeDefinition, TypeDescription viewPoint)Compiles the given type into a method graph.MethodGraph.Linkedcompile(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.
-
-