public class ClassUtils extends Object
限定符和类型 | 字段和说明 |
---|---|
static String |
CLASS_EXTENSION |
static String |
JAVA_EXTENSION |
限定符和类型 | 方法和说明 |
---|---|
static Class<?> |
_forName(String className) |
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<?> |
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 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 Class<?> _forName(String className) throws ClassNotFoundException
public 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
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.