Class MethodSignature


  • public class MethodSignature
    extends java.lang.Object
    Container class for method signature data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String descriptor
      The descriptor of the method.
      java.lang.String name
      The name of the method.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodSignature​(java.lang.String name, java.lang.String descriptor)
      Constructs a new MethodSignature.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks if two MethodSignatures represent the same method.
      int hashCode()
      Calculates a hash based on name and descriptor.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public final java.lang.String name
        The name of the method.
      • descriptor

        public final java.lang.String descriptor
        The descriptor of the method.
    • Constructor Detail

      • MethodSignature

        public MethodSignature​(java.lang.String name,
                               java.lang.String descriptor)
        Constructs a new MethodSignature. The parameters should be either plain or mapped in the same way;
        Parameters:
        name - the method name
        descriptor - the method descriptor
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Checks if two MethodSignatures represent the same method.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the other signature
        Returns:
        whether they represent the same method
      • hashCode

        public int hashCode()
        Calculates a hash based on name and descriptor.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code