Class Signature

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

public final class Signature extends Object
Method name. Represents java method name. Since methods in java are allowed to be overloaded, we should handle this ambiguity. This class is used to represent method name and its descriptor.
Since:
0.5
  • Constructor Details

    • Signature

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

      public Signature(String name, String descriptor)
      Constructor.
      Parameters:
      name - Method name.
      descriptor - 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.