|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.map.util.ClassUtil
public final class ClassUtil
| Method Summary | |
|---|---|
static java.lang.String |
canBeABeanType(java.lang.Class<?> type)
|
static void |
checkAndFixAccess(java.lang.reflect.Member member)
Method called to check if we can use the passed method or constructor (wrt access restriction -- public methods can be called, others usually not); and if not, if there is a work-around for the problem. |
static java.util.List<java.lang.Class<?>> |
findSuperTypes(java.lang.Class<?> cls,
java.lang.Class<?> endBefore)
Method that will find all sub-classes and implemented interfaces of a given class or interface. |
static boolean |
isConcrete(java.lang.Class<?> type)
Helper method that checks if given class is a concrete one; that is, not an interface or abstract class. |
static java.lang.String |
isLocalType(java.lang.Class<?> type)
|
static boolean |
isProxyType(java.lang.Class<?> type)
Helper method used to weed out dynamic Proxy types; types that do not expose concrete method API that we could use to figure out automatic Bean (property) based serialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<java.lang.Class<?>> findSuperTypes(java.lang.Class<?> cls,
java.lang.Class<?> endBefore)
Object.class is not included in the list
regardless of whether endBefore argument is defined
endBefore - Super-type to NOT include in results, if any; when
encountered, will be ignored (and no super types are checked).public static java.lang.String canBeABeanType(java.lang.Class<?> type)
public static java.lang.String isLocalType(java.lang.Class<?> type)
public static boolean isProxyType(java.lang.Class<?> type)
public static boolean isConcrete(java.lang.Class<?> type)
public static void checkAndFixAccess(java.lang.reflect.Member member)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||