Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node
java.lang.Object
net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node
- All Implemented Interfaces:
MethodGraph.Node
- Enclosing class:
MethodGraph.Compiler.Default.Key.Store.Entry.Resolved<U>
@Enhance
protected static class MethodGraph.Compiler.Default.Key.Store.Entry.Resolved.Node
extends Object
implements MethodGraph.Node
A node implementation representing a non-ambiguous method.
-
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
FieldsModifier and TypeFieldDescriptionprivate final MethodGraph.Compiler.Default.Key.Detached
The detached key representing this node.private final MethodDescription
The representative method of this node.private final Visibility
The node's minimal visibility.private final boolean
true
if the represented method was made explicitly visible by a visibility bridge. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Node
(MethodGraph.Compiler.Default.Key.Detached key, MethodDescription methodDescription, Visibility visibility, boolean visible) Creates a new node. -
Method Summary
Modifier and TypeMethodDescriptionReturns a set of type tokens that this method represents.Returns the method that is represented by this node.getSort()
Returns the sort of this node.Returns the minimal method visibility of all methods that are represented by this node.
-
Field Details
-
key
The detached key representing this node. -
methodDescription
The representative method of this node. -
visibility
The node's minimal visibility. -
visible
private final boolean visibletrue
if the represented method was made explicitly visible by a visibility bridge.
-
-
Constructor Details
-
Node
protected Node(MethodGraph.Compiler.Default.Key.Detached key, MethodDescription methodDescription, Visibility visibility, boolean visible) Creates a new node.- Parameters:
key
- The detached key representing this node.methodDescription
- The representative method of this node.visibility
- The node's minimal visibility.visible
-true
if the represented method was made explicitly visible by a visibility bridge.
-
-
Method Details
-
getSort
Returns the sort of this node.- Specified by:
getSort
in interfaceMethodGraph.Node
- Returns:
- The sort of this node.
-
getRepresentative
Returns the method that is represented by this node.- Specified by:
getRepresentative
in interfaceMethodGraph.Node
- Returns:
- The method that is represented by this node.
-
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:
getMethodTypes
in interfaceMethodGraph.Node
- Returns:
- A set of type tokens that this method represents.
-
getVisibility
Returns the minimal method visibility of all methods that are represented by this node.- Specified by:
getVisibility
in interfaceMethodGraph.Node
- Returns:
- The minimal method visibility of all methods that are represented by this node.
-