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 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 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 StringinternalNameThe internal name of the method this key identifies.protected intparameterCountThe number of method parameters of the method this key identifies.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)protected abstract Set<S>getIdentifiers()Returns a set of all identifiers of this key.inthashCode()
-
-
-
Field Detail
-
internalName
protected final String internalName
The internal name of the method this key identifies.
-
parameterCount
protected final int parameterCount
The number of method parameters of the method this key identifies.
-
-
Constructor Detail
-
Key
protected Key(String internalName, int parameterCount)
Creates a new key.- Parameters:
internalName- The internal name of the method this key identifies.parameterCount- The number of method parameters of the method this key identifies.
-
-