public final class ClassUtils extends Object
| 构造器和说明 |
|---|
ClassUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Class |
findClassByName(String className)
Finds and returns class by className.
|
static String |
getCanonicalName(Class cls)
Gets and returns the canonical name of the underlying class.
|
static String |
getCanonicalName(Object obj)
Gets and returns the canonical name of the underlying class.
|
static String |
getName(Class cls)
Gets and returns the class name.
|
static String |
getName(Object obj)
Gets and returns className.
|
static String |
getSimplaName(Class cls)
Gets and returns the simple name of the underlying class.
|
static String |
getSimplaName(Object obj)
Gets and returns the simple name of the underlying class as given in the source code.
|
static boolean |
isAssignableFrom(Class clazz,
Class cls)
Determines if the class or interface represented by this object is either the same as, or is a superclass or
superinterface of, the class or interface represented by the specified parameter.
|
public static Class findClassByName(String className)
className - String value for className.public static boolean isAssignableFrom(Class clazz, Class cls)
clazz - Instances of the class represent classes and interfaces.cls - Instances of the class represent classes and interfaces.public static String getName(Class cls)
cls - Instances of the class represent classes and interfaces.public static String getName(Object obj)
obj - Object instance.public static String getCanonicalName(Class cls)
cls - Instances of the class represent classes and interfaces.public static String getCanonicalName(Object obj)
obj - Object instance.public static String getSimplaName(Class cls)
cls - Instances of the class represent classes and interfaces.Copyright © 2018–2022 Alibaba Group. All rights reserved.