Package com.mchange.v2.codegen
Class CodegenUtils
- java.lang.Object
-
- com.mchange.v2.codegen.CodegenUtils
-
public final class CodegenUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
fqcnLastElement(java.lang.String fqcn)
static java.lang.String
generatedArgumentName(int index)
static java.lang.String
getModifierString(int modifiers)
static boolean
inSamePackage(java.lang.String cn1, java.lang.String cn2)
static java.lang.String
methodCall(java.lang.reflect.Method m)
static java.lang.String
methodCall(java.lang.reflect.Method m, java.lang.String[] argNames)
static java.lang.String
methodSignature(int modifiers, java.lang.reflect.Method m, java.lang.String[] argNames)
static java.lang.String
methodSignature(java.lang.reflect.Method m)
static java.lang.String
methodSignature(java.lang.reflect.Method m, java.lang.String[] argNames)
static java.lang.String
packageNameToFileSystemDirPath(java.lang.String packageName)
static java.lang.String
reflectiveMethodObjectArray(java.lang.reflect.Method m)
static java.lang.String
reflectiveMethodObjectArray(java.lang.reflect.Method m, java.lang.String[] argNames)
static java.lang.String
reflectiveMethodParameterTypeArray(java.lang.reflect.Method m)
static java.lang.String
simpleClassName(java.lang.Class cl)
static IndentedWriter
toIndentedWriter(java.io.Writer w)
static java.lang.Class
unarrayClass(java.lang.Class cl)
-
-
-
Method Detail
-
getModifierString
public static java.lang.String getModifierString(int modifiers)
-
unarrayClass
public static java.lang.Class unarrayClass(java.lang.Class cl)
-
inSamePackage
public static boolean inSamePackage(java.lang.String cn1, java.lang.String cn2)
-
fqcnLastElement
public static java.lang.String fqcnLastElement(java.lang.String fqcn)
- Returns:
- fully qualified class name last element
-
methodSignature
public static java.lang.String methodSignature(java.lang.reflect.Method m)
-
methodSignature
public static java.lang.String methodSignature(java.lang.reflect.Method m, java.lang.String[] argNames)
-
methodSignature
public static java.lang.String methodSignature(int modifiers, java.lang.reflect.Method m, java.lang.String[] argNames)
-
methodCall
public static java.lang.String methodCall(java.lang.reflect.Method m)
-
methodCall
public static java.lang.String methodCall(java.lang.reflect.Method m, java.lang.String[] argNames)
-
reflectiveMethodObjectArray
public static java.lang.String reflectiveMethodObjectArray(java.lang.reflect.Method m)
-
reflectiveMethodObjectArray
public static java.lang.String reflectiveMethodObjectArray(java.lang.reflect.Method m, java.lang.String[] argNames)
-
reflectiveMethodParameterTypeArray
public static java.lang.String reflectiveMethodParameterTypeArray(java.lang.reflect.Method m)
-
generatedArgumentName
public static java.lang.String generatedArgumentName(int index)
-
simpleClassName
public static java.lang.String simpleClassName(java.lang.Class cl)
-
toIndentedWriter
public static IndentedWriter toIndentedWriter(java.io.Writer w)
-
packageNameToFileSystemDirPath
public static java.lang.String packageNameToFileSystemDirPath(java.lang.String packageName)
-
-