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 Classes Modifier and Type Interface Description static classMethodGraph.Compiler.Default.Key.Store.Entry.Ambiguous<U>An entry representing an ambiguous node resolution.static classMethodGraph.Compiler.Default.Key.Store.Entry.Initial<U>An entry in its initial state before registering any method as a representative.static classMethodGraph.Compiler.Default.Key.Store.Entry.Resolved<U>An entry representing a non-ambiguous node resolution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodGraph.NodeasNode(MethodGraph.Compiler.Default.Merger merger)Transforms this entry into a node.MethodGraph.Compiler.Default.Key.Store.Entry<W>extendBy(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<W> harmonizer)Extends this entry by the given method.java.util.Set<MethodDescription>getCandidates()Returns all candidate methods represented by this entry.MethodGraph.Compiler.Default.Key.Harmonized<W>getKey()Returns the harmonized key of this entry.VisibilitygetVisibility()Returns the minimal visibility of this entry.MethodGraph.Compiler.Default.Key.Store.Entry<W>inject(MethodGraph.Compiler.Default.Key.Harmonized<W> key, Visibility visibility)Injects the given key into this entry.
-
-
-
Method Detail
-
getKey
MethodGraph.Compiler.Default.Key.Harmonized<W> getKey()
Returns the harmonized key of this entry.- Returns:
- The harmonized key of this entry.
-
getCandidates
java.util.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.Harmonized<W> key, Visibility visibility)
Injects the given key into this entry.- Parameters:
key- The key to inject into this entry.visibility- The entry's minimal visibility.- Returns:
- This entry extended with the given key.
-
asNode
MethodGraph.Node asNode(MethodGraph.Compiler.Default.Merger merger)
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.
-
-