Class KotlinUtils

java.lang.Object
com.alibaba.fastjson2.util.KotlinUtils

public class KotlinUtils extends Object
Since:
2.0.39
Author:
kraity
  • Field Details

    • STATE

      public static final int STATE
  • Method Details

    • getConstructor

      public static void getConstructor(Class<?> clazz, BeanInfo beanInfo)
      Gets the target constructor and its parameter names of the specified clazz
      Parameters:
      clazz - the specified class for search
    • isKotlin

      public static boolean isKotlin(Class clazz)
    • getKotlinConstructor

      public static Constructor getKotlinConstructor(Constructor[] constructors)
    • getKotlinConstructor

      public static Constructor getKotlinConstructor(Constructor[] constructors, String[] paramNames)
    • getKoltinConstructorParameters

      public static String[] getKoltinConstructorParameters(Class clazz)
    • isKotlinIgnore

      public static boolean isKotlinIgnore(Class clazz, String methodName)