Class CodegenUtils

java.lang.Object
com.mchange.v2.codegen.CodegenUtils

public final class CodegenUtils extends Object
  • Method Details

    • getModifierString

      public static String getModifierString(int modifiers)
    • unarrayClass

      public static Class unarrayClass(Class cl)
    • inSamePackage

      public static boolean inSamePackage(String cn1, String cn2)
    • fqcnLastElement

      public static String fqcnLastElement(String fqcn)
      Returns:
      fully qualified class name last element
    • methodSignature

      public static String methodSignature(Method m)
    • methodSignature

      public static String methodSignature(Method m, String[] argNames)
    • methodSignature

      public static String methodSignature(int modifiers, Method m, String[] argNames)
    • methodCall

      public static String methodCall(Method m)
    • methodCall

      public static String methodCall(Method m, String[] argNames)
    • reflectiveMethodObjectArray

      public static String reflectiveMethodObjectArray(Method m)
    • reflectiveMethodObjectArray

      public static String reflectiveMethodObjectArray(Method m, String[] argNames)
    • reflectiveMethodParameterTypeArray

      public static String reflectiveMethodParameterTypeArray(Method m)
    • generatedArgumentName

      public static String generatedArgumentName(int index)
    • simpleClassName

      public static String simpleClassName(Class cl)
    • toIndentedWriter

      public static IndentedWriter toIndentedWriter(Writer w)
    • packageNameToFileSystemDirPath

      public static String packageNameToFileSystemDirPath(String packageName)