Class ClassUtils
java.lang.Object
org.apache.dubbo.common.compiler.support.ClassUtils
ClassUtils. (Tool, Static, ThreadSafe)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Objectstatic voidcheckBytecode(String name, byte[] bytecode) static Class<?> classForName(String className) static Class<?> static Class<?> static Class<?> getBoxedClass(Class<?> type) static StringgetInitCode(Class<?> type) static StringgetMethodName(Method method, Class<?>[] parameterClasses, String rightCode) static StringgetSimpleClassName(String qualifiedName) get simple class name from qualified class namestatic intstatic 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> static Stringstatic URIstatic booleanstatic bytestatic charstatic doublestatic floatstatic intstatic longstatic Objectstatic short
-
Field Details
-
CLASS_EXTENSION
- See Also:
-
JAVA_EXTENSION
- See Also:
-
-
Method Details
-
newInstance
-
forName
-
forName
-
classForName
- Throws:
ClassNotFoundException
-
getBoxedClass
-
boxed
-
boxed
-
boxed
-
boxed
-
boxed
-
boxed
-
boxed
-
boxed
-
boxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
unboxed
-
isNotEmpty
-
getSize
-
toURI
-
isBeforeJava5
-
isBeforeJava6
-
toString
-
checkBytecode
-
getSizeMethod
-
getMethodName
-
searchMethod
public static Method searchMethod(Class<?> currentClass, String name, Class<?>[] parameterTypes) throws NoSuchMethodException - Throws:
NoSuchMethodException
-
getInitCode
-
toMap
-
getSimpleClassName
get simple class name from qualified class name
-