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 java.lang.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
Fields Modifier and Type Field Description private MethodGraph.Compiler.Default.Key.DetachedkeyThe detached key representing this node.private MethodDescriptionmethodDescriptionThe representative method of this node.private VisibilityvisibilityThe node's minimal visibility.private booleanvisibletrueif the represented method was made explicitly visible by a visibility bridge.
-
Constructor Summary
Constructors Modifier Constructor Description protectedNode(MethodGraph.Compiler.Default.Key.Detached key, MethodDescription methodDescription, Visibility visibility, boolean visible)Creates a new 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
-
key
private final MethodGraph.Compiler.Default.Key.Detached key
The detached key representing this node.
-
methodDescription
private final MethodDescription methodDescription
The representative method of this node.
-
visibility
private final Visibility visibility
The node's minimal visibility.
-
visible
private final boolean visible
trueif the represented method was made explicitly visible by a visibility bridge.
-
-
Constructor Detail
-
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-trueif the represented method was made explicitly visible by a visibility bridge.
-
-
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.
-
-