Package net.bytebuddy.dynamic.scaffold
Class MethodGraph.Compiler.Default.Key<S>
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.MethodGraph.Compiler.Default.Key<S>
-
- Type Parameters:
S- The type of the token used for deciding on method equality.
- Direct Known Subclasses:
MethodGraph.Compiler.Default.Key.Detached,MethodGraph.Compiler.Default.Key.Harmonized
- Enclosing class:
- MethodGraph.Compiler.Default<T>
protected abstract static class MethodGraph.Compiler.Default.Key<S> extends java.lang.ObjectA key represents a collection of methods within a method graph to later yield a node representing a collection of methods, i.e. a method representative including information on the required method bridges.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classMethodGraph.Compiler.Default.Key.DetachedA detached version of a key that identifies methods by their JVM signature, i.e.protected static classMethodGraph.Compiler.Default.Key.Harmonized<V>A harmonized key represents a key where equality is decided based on tokens that are returned by aMethodGraph.Compiler.Default.Harmonizer.protected static classMethodGraph.Compiler.Default.Key.Store<V>A store for collected methods that are identified by keys.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringinternalNameThe internal name of the method this key identifies.protected intparameterCountThe number of method parameters of the method this key identifies.
-
Constructor Summary
Constructors Modifier Constructor Description protectedKey(java.lang.String internalName, int parameterCount)Creates a new key.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)protected abstract java.util.Set<S>getIdentifiers()Returns a set of all identifiers of this key.inthashCode()
-
-
-
Method Detail
-
getIdentifiers
protected abstract java.util.Set<S> getIdentifiers()
Returns a set of all identifiers of this key.- Returns:
- A set of all identifiers of this key.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-