类 KotlinNameUtil

java.lang.Object
proguard.classfile.util.kotlin.KotlinNameUtil

public class KotlinNameUtil extends Object
Kotlin utility methods to help with Kotlin naming conventions.

See, for example, https://github.com/JetBrains/kotlin/blob/master/core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/JvmAbi.java

  • 字段详细资料

  • 方法详细资料

    • generateGetterName

      public static String generateGetterName(String name)
    • generateSetterName

      public static String generateSetterName(String name)
    • isGetterName

      public static boolean isGetterName(String name)
    • isSetterName

      public static boolean isSetterName(String name)
    • getterNameToPropertyName

      public static String getterNameToPropertyName(String name, boolean stripAfterDollar)
      See propertiesConventionUtil.kt

      For example:

      getMyProperty -> myProperty isProperty -> property isfalse -> isfalse

      参数:
      name - the property getter name e.g. getMyProperty
      stripAfterDollar - strip any extra info added by the compiler
      返回:
      the property name