public class ClassUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_EXTENSION |
static String |
JAVA_EXTENSION |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
boxed(boolean v) |
static Byte |
boxed(byte v) |
static Character |
boxed(char v) |
static Double |
boxed(double v) |
static Float |
boxed(float v) |
static Integer |
boxed(int v) |
static Long |
boxed(long v) |
static Object |
boxed(Object v) |
static Short |
boxed(short v) |
static void |
checkBytecode(String name,
byte[] bytecode) |
static Class<?> |
classForName(String className) |
static Class<?> |
forName(String className) |
static Class<?> |
forName(String[] packages,
String className) |
static Class<?> |
getBoxedClass(Class<?> type) |
static Class<?> |
getGenericClass(Class<?> cls) |
static Class<?> |
getGenericClass(Class<?> cls,
int i) |
static String |
getInitCode(Class<?> type) |
static String |
getMethodName(Method method,
Class<?>[] parameterClasses,
String rightCode) |
static String |
getSimpleClassName(String qualifiedName)
get simple class name from qualified class name
|
static int |
getSize(Object object) |
static String |
getSizeMethod(Class<?> cls) |
static boolean |
isBeforeJava5(String javaVersion) |
static boolean |
isBeforeJava6(String javaVersion) |
static boolean |
isNotEmpty(Object object) |
static Object |
newInstance(String name) |
static Method |
searchMethod(Class<?> currentClass,
String name,
Class<?>[] parameterTypes) |
static <K,V> Map<K,V> |
toMap(Map.Entry<K,V>[] entries) |
static String |
toString(Throwable e) |
static URI |
toURI(String name) |
static boolean |
unboxed(Boolean v) |
static byte |
unboxed(Byte v) |
static char |
unboxed(Character v) |
static double |
unboxed(Double v) |
static float |
unboxed(Float v) |
static int |
unboxed(Integer v) |
static long |
unboxed(Long v) |
static Object |
unboxed(Object v) |
static short |
unboxed(Short v) |
public static final String CLASS_EXTENSION
public static final String JAVA_EXTENSION
public static Class<?> classForName(String className) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Boolean boxed(boolean v)
public static Character boxed(char v)
public static Byte boxed(byte v)
public static Short boxed(short v)
public static Integer boxed(int v)
public static Long boxed(long v)
public static Float boxed(float v)
public static Double boxed(double v)
public static boolean unboxed(Boolean v)
public static char unboxed(Character v)
public static byte unboxed(Byte v)
public static short unboxed(Short v)
public static int unboxed(Integer v)
public static long unboxed(Long v)
public static float unboxed(Float v)
public static double unboxed(Double v)
public static boolean isNotEmpty(Object object)
public static int getSize(Object object)
public static boolean isBeforeJava5(String javaVersion)
public static boolean isBeforeJava6(String javaVersion)
public static void checkBytecode(String name, byte[] bytecode)
public static String getMethodName(Method method, Class<?>[] parameterClasses, String rightCode)
public static Method searchMethod(Class<?> currentClass, String name, Class<?>[] parameterTypes) throws NoSuchMethodException
NoSuchMethodExceptionCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.