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.
  • Field Details

    • 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 Details

    • 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.
  • Method Details

    • getIdentifiers

      protected abstract 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:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object