Package net.bytebuddy.dynamic.scaffold
Enum MethodGraph.Compiler.ForDeclaredMethods
- java.lang.Object
-
- java.lang.Enum<MethodGraph.Compiler.ForDeclaredMethods>
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.ForDeclaredMethods
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MethodGraph.Compiler.ForDeclaredMethods>
,MethodGraph.Compiler
- Enclosing interface:
- MethodGraph.Compiler
public static enum MethodGraph.Compiler.ForDeclaredMethods extends java.lang.Enum<MethodGraph.Compiler.ForDeclaredMethods> implements MethodGraph.Compiler
A flat compiler that simply returns the methods that are declared by the instrumented type.
-
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ForDeclaredMethods()
-
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 MethodGraph.Compiler.ForDeclaredMethods
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MethodGraph.Compiler.ForDeclaredMethods[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodGraph.Compiler.ForDeclaredMethods INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MethodGraph.Compiler.ForDeclaredMethods[] 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 (MethodGraph.Compiler.ForDeclaredMethods c : MethodGraph.Compiler.ForDeclaredMethods.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodGraph.Compiler.ForDeclaredMethods 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)
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)
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.
-
-