com.mchange.v2.codegen
Class CodegenUtils
java.lang.Object
com.mchange.v2.codegen.CodegenUtils
public final class CodegenUtils
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)