V - The type of the tokens yielded by a harmonizer.protected static class MethodGraph.Compiler.Default.Key.Harmonized<V> extends MethodGraph.Compiler.Default.Key<V>
MethodGraph.Compiler.Default.Harmonizer.MethodGraph.Compiler.Default.Key.Detached, MethodGraph.Compiler.Default.Key.Harmonized<V>, MethodGraph.Compiler.Default.Key.Store<V>internalName, parameterCount| Modifier | Constructor and Description |
|---|---|
protected |
Harmonized(String internalName,
int parameterCount,
Map<V,Set<MethodDescription.TypeToken>> identifiers)
Creates a new harmonized key.
|
| Modifier and Type | Method and Description |
|---|---|
protected MethodGraph.Compiler.Default.Key.Harmonized<V> |
combineWith(MethodGraph.Compiler.Default.Key.Harmonized<V> key)
Combines this key with the given key.
|
protected MethodGraph.Compiler.Default.Key.Detached |
detach(MethodDescription.TypeToken typeToken)
Creates a detached version of this key.
|
protected MethodGraph.Compiler.Default.Key.Harmonized<V> |
extend(MethodDescription.InDefinedShape methodDescription,
MethodGraph.Compiler.Default.Harmonizer<V> harmonizer)
Extends this key by the given method description.
|
protected Set<V> |
getIdentifiers()
Returns a set of all identifiers of this key.
|
protected static <Q> MethodGraph.Compiler.Default.Key.Harmonized<Q> |
of(MethodDescription methodDescription,
MethodGraph.Compiler.Default.Harmonizer<Q> harmonizer)
Creates a new harmonized key for the given method description.
|
equals, hashCodeprotected Harmonized(String internalName, int parameterCount, Map<V,Set<MethodDescription.TypeToken>> identifiers)
internalName - The internal name of the method this key identifies.parameterCount - The number of method parameters of the method this key identifies.identifiers - A mapping of identifiers to the type tokens they represent.protected static <Q> MethodGraph.Compiler.Default.Key.Harmonized<Q> of(MethodDescription methodDescription, MethodGraph.Compiler.Default.Harmonizer<Q> harmonizer)
Q - The type of the token yielded by a harmonizer.methodDescription - The method description to represent as a harmonized key.harmonizer - The harmonizer to use.protected MethodGraph.Compiler.Default.Key.Detached detach(MethodDescription.TypeToken typeToken)
typeToken - The type token of the representative method.protected MethodGraph.Compiler.Default.Key.Harmonized<V> combineWith(MethodGraph.Compiler.Default.Key.Harmonized<V> key)
key - The key to be merged with this key.protected MethodGraph.Compiler.Default.Key.Harmonized<V> extend(MethodDescription.InDefinedShape methodDescription, MethodGraph.Compiler.Default.Harmonizer<V> harmonizer)
methodDescription - The method to extend this key with.harmonizer - The harmonizer to use for determining method equality.protected Set<V> getIdentifiers()
MethodGraph.Compiler.Default.KeygetIdentifiers in class MethodGraph.Compiler.Default.Key<V>Copyright © 2014–2023. All rights reserved.