Class TypedName


  • public final class TypedName
    extends Object
    Method name with a type. This class adds a type to a method name. Also, it can be used to remove a type from a method name. In other words, it allows the following translations: `foo` <-> `java_lang_utils_Stream$foo` `of` <-> `java_util_Stream$of` `map` <-> `java_util_Stream$map` You can find more examples in unit tests.
    Since:
    0.4
    • Constructor Detail

      • TypedName

        public TypedName​(String original)
        Constructor.
        Parameters:
        original - Original name with or without a type.
    • Method Detail

      • withoutType

        public String withoutType()
        Remove a type from the name.
        Returns:
        Name without a type.
      • withType

        public String withType​(Attributes attributes)
        Add a type to the name.
        Parameters:
        attributes - Attributes that have the type information.
        Returns:
        Name with a type.