类 ClassUtils
- java.lang.Object
-
- com.alibaba.dubbo.common.compiler.support.ClassUtils
-
public class ClassUtils extends Object
ClassUtils. (Tool, Static, ThreadSafe)
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringCLASS_EXTENSIONstatic StringJAVA_EXTENSION
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static Class<?>_forName(String className)static Booleanboxed(boolean v)static Byteboxed(byte v)static Characterboxed(char v)static Doubleboxed(double v)static Floatboxed(float v)static Integerboxed(int v)static Longboxed(long v)static Shortboxed(short v)static Objectboxed(Object v)static voidcheckBytecode(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 StringgetInitCode(Class<?> type)static StringgetMethodName(Method method, Class<?>[] parameterClasses, String rightCode)static intgetSize(Object object)static StringgetSizeMethod(Class<?> cls)static booleanisBeforeJava5(String javaVersion)static booleanisBeforeJava6(String javaVersion)static booleanisNotEmpty(Object object)static ObjectnewInstance(String name)static MethodsearchMethod(Class<?> currentClass, String name, Class<?>[] parameterTypes)static <K,V>
Map<K,V>toMap(Map.Entry<K,V>[] entries)static StringtoString(Throwable e)static URItoURI(String name)static booleanunboxed(Boolean v)static byteunboxed(Byte v)static charunboxed(Character v)static doubleunboxed(Double v)static floatunboxed(Float v)static intunboxed(Integer v)static longunboxed(Long v)static Objectunboxed(Object v)static shortunboxed(Short v)
-
-
-
方法详细资料
-
_forName
public static Class<?> _forName(String className) throws ClassNotFoundException
-
boxed
public static Boolean boxed(boolean v)
-
boxed
public static Character boxed(char v)
-
boxed
public static Byte boxed(byte v)
-
boxed
public static Short boxed(short v)
-
boxed
public static Integer boxed(int v)
-
boxed
public static Long boxed(long v)
-
boxed
public static Float boxed(float v)
-
boxed
public static Double boxed(double v)
-
unboxed
public static boolean unboxed(Boolean v)
-
unboxed
public static char unboxed(Character v)
-
unboxed
public static byte unboxed(Byte v)
-
unboxed
public static short unboxed(Short v)
-
unboxed
public static int unboxed(Integer v)
-
unboxed
public static long unboxed(Long v)
-
unboxed
public static float unboxed(Float v)
-
unboxed
public static double unboxed(Double v)
-
isNotEmpty
public static boolean isNotEmpty(Object object)
-
getSize
public static int getSize(Object object)
-
isBeforeJava5
public static boolean isBeforeJava5(String javaVersion)
-
isBeforeJava6
public static boolean isBeforeJava6(String javaVersion)
-
checkBytecode
public static void checkBytecode(String name, byte[] bytecode)
-
getMethodName
public static String getMethodName(Method method, Class<?>[] parameterClasses, String rightCode)
-
searchMethod
public static Method searchMethod(Class<?> currentClass, String name, Class<?>[] parameterTypes) throws NoSuchMethodException
-
-