Package net.bytebuddy.dynamic.scaffold
Interface MethodGraph.Compiler.Default.Key.Store.Entry<W>
- Type Parameters:
W
- The type of the harmonized token used for determining method equality.
- All Known Implementing Classes:
MethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous
,MethodGraph.Compiler.Default.Key.Store.Entry.Initial
,MethodGraph.Compiler.Default.Key.Store.Entry.Resolved
- Enclosing class:
- MethodGraph.Compiler.Default.Key.Store<V>
protected static interface MethodGraph.Compiler.Default.Key.Store.Entry<W>
An entry of a key store.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An entry representing an ambiguous node resolution.static class
An entry in its initial state before registering any method as a representative.static class
An entry representing a non-ambiguous node resolution. -
Method Summary
Modifier and TypeMethodDescriptionTransforms this entry into a node.extendBy
(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<W> harmonizer) Extends this entry by the given method.Returns all candidate methods represented by this entry.getKey()
Returns the harmonized key of this entry.Returns the minimal visibility of this entry.Injects the given key into this entry.
-
Method Details
-
getKey
MethodGraph.Compiler.Default.Key.Harmonized<W> getKey()Returns the harmonized key of this entry.- Returns:
- The harmonized key of this entry.
-
getCandidates
Set<MethodDescription> getCandidates()Returns all candidate methods represented by this entry.- Returns:
- All candidate methods represented by this entry.
-
getVisibility
Visibility getVisibility()Returns the minimal visibility of this entry.- Returns:
- The minimal visibility of this entry.
-
extendBy
MethodGraph.Compiler.Default.Key.Store.Entry<W> extendBy(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<W> harmonizer) Extends this entry by the given method.- Parameters:
methodDescription
- The method description to extend this entry with.harmonizer
- The harmonizer to use for determining method equality.- Returns:
- This key extended by the given method.
-
inject
MethodGraph.Compiler.Default.Key.Store.Entry<W> inject(MethodGraph.Compiler.Default.Key.Store.Entry<W> entry) Injects the given key into this entry.- Parameters:
entry
- The entry to be combined.- Returns:
- This entry extended with the given key.
-
asNode
Transforms this entry into a node.- Parameters:
merger
- The merger to use for determining the representative method of an ambiguous node.- Returns:
- The resolved node.
-