Class Signature

java.lang.Object
org.eolang.jeo.representation.Signature

public final class Signature extends Object
Method signature representation combining name and descriptor.

Represents Java method name and descriptor as a unified signature. Since methods in Java are allowed to be overloaded, we need to handle this ambiguity by combining the method name with its descriptor to create a unique identifier.

Since:
0.5.0
  • Constructor Details

    • Signature

      public Signature(String encoded)
      Constructor.
      Parameters:
      encoded - The encoded method name and descriptor
    • Signature

      public Signature(String name, String descriptor)
      Constructor.
      Parameters:
      name - The method name
      descriptor - The method descriptor
  • Method Details

    • encoded

      public String encoded()
      Encoded method name with descriptor.
      Returns:
      Encoded method name with descriptor.
    • name

      public String name()
      Just a name without suffix.
      Returns:
      Name without suffix.
    • descriptor

      public String descriptor()
      Just a descriptor.
      Returns:
      Descriptor without name.