Package org.eolang.jeo.representation
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
descriptor()
Just a descriptor.String
encoded()
Encoded method name with descriptor.String
name()
Just a name without suffix.
-
-
-
Method Detail
-
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.
-
-