Class BasicMethodInfo

  • All Implemented Interfaces:
    MethodInfo

    public class BasicMethodInfo
    extends java.lang.Object
    implements MethodInfo
    A minimal implementation of MethodInfo.
    • Constructor Detail

      • BasicMethodInfo

        public BasicMethodInfo​(@NotNull
                               @NotNull java.lang.String methodName,
                               @NotNull
                               @NotNull MethodDescriptor descriptor)
        Creates a BasicMethodInfo given a method name and descriptor.
        Parameters:
        descriptor - a method descriptor
        methodName - a method name
    • Method Detail

      • getMethodName

        @NotNull
        public @NotNull java.lang.String getMethodName()
        Description copied from interface: MethodInfo
        Returns the method's name.
        Specified by:
        getMethodName in interface MethodInfo
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object