Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Node.Simple
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Node.Simple
-
- All Implemented Interfaces:
MethodGraph.Node
- Enclosing interface:
- MethodGraph.Node
@Enhance public static class MethodGraph.Node.Simple extends java.lang.Object implements MethodGraph.Node
A simple implementation of a resolved node of a method without bridges.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.scaffold.MethodGraph.Node
MethodGraph.Node.Simple, MethodGraph.Node.Sort, MethodGraph.Node.Unresolved
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescriptionmethodDescriptionThe represented method.
-
Constructor Summary
Constructors Constructor Description Simple(MethodDescription methodDescription)Creates a simple node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<MethodDescription.TypeToken>getMethodTypes()Returns a set of type tokens that this method represents.MethodDescriptiongetRepresentative()Returns the method that is represented by this node.MethodGraph.Node.SortgetSort()Returns the sort of this node.VisibilitygetVisibility()Returns the minimal method visibility of all methods that are represented by this node.
-
-
-
Field Detail
-
methodDescription
private final MethodDescription methodDescription
The represented method.
-
-
Constructor Detail
-
Simple
public Simple(MethodDescription methodDescription)
Creates a simple node.- Parameters:
methodDescription- The represented method.
-
-
Method Detail
-
getSort
public MethodGraph.Node.Sort getSort()
Returns the sort of this node.- Specified by:
getSortin interfaceMethodGraph.Node- Returns:
- The sort of this node.
-
getRepresentative
public MethodDescription getRepresentative()
Returns the method that is represented by this node.- Specified by:
getRepresentativein interfaceMethodGraph.Node- Returns:
- The method that is represented by this node.
-
getMethodTypes
public java.util.Set<MethodDescription.TypeToken> getMethodTypes()
Returns a set of type tokens that this method represents. This set contains the actual method's type including the types of all bridge methods.- Specified by:
getMethodTypesin interfaceMethodGraph.Node- Returns:
- A set of type tokens that this method represents.
-
getVisibility
public Visibility getVisibility()
Returns the minimal method visibility of all methods that are represented by this node.- Specified by:
getVisibilityin interfaceMethodGraph.Node- Returns:
- The minimal method visibility of all methods that are represented by this node.
-
-