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.Object
A 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 class
MethodGraph.Compiler.Default.Key.Detached
A detached version of a key that identifies methods by their JVM signature, i.e.protected static class
MethodGraph.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 class
MethodGraph.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.String
internalName
The internal name of the method this key identifies.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Key(java.lang.String internalName)
Creates a new key.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
protected abstract java.util.Set<S>
getIdentifiers()
Returns a set of all identifiers of this key.int
hashCode()
-
-
-
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.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-