Package org.eolang.jeo.representation
Class NamedDescriptor
java.lang.Object
org.eolang.jeo.representation.NamedDescriptor
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 Summary
ConstructorsConstructorDescriptionNamedDescriptor(String encoded) Constructor.NamedDescriptor(String name, String descriptor) Constructor. -
Method Summary
-
Constructor Details
-
NamedDescriptor
Constructor.- Parameters:
encoded- The encoded method name and descriptor
-
NamedDescriptor
Constructor.- Parameters:
name- The method namedescriptor- The method descriptor
-
-
Method Details
-
encoded
Encoded method name with descriptor.- Returns:
- Encoded method name with descriptor.
-
name
Just a name without suffix.- Returns:
- Name without suffix.
-
descriptor
Just a descriptor.- Returns:
- Descriptor without name.
-