Class ConventionNameTransformer

  • All Implemented Interfaces:
    java.io.Serializable

    
    public final class ConventionNameTransformer
    extends IconNameTransformer
                        

    Naming transformer based on naming conventions.

    Supports common naming patterns with optional prefix/suffix.

    Example:

    val transformer = ConventionNameTransformer(
        convention = NamingConvention.PASCAL_CASE,
        suffix = "Icon"
    )
    transformer.transform("arrow-left") // → "ArrowLeftIcon"
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String transform(String fileName) Transform an icon file name into a valid Kotlin class name.
      String getSignature() Override getSignature to include constructor parameters in the signature.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • transform

         String transform(String fileName)

        Transform an icon file name into a valid Kotlin class name.

        Parameters:
        fileName - The file name (with or without .
        Returns:

        Transformed Kotlin class name

      • getSignature

         String getSignature()

        Override getSignature to include constructor parameters in the signature. This ensures that changes to the transformer configuration are detected by Gradle's cache.