1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:21 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8ClassUtil (jackson-databind 2.1.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-10-09"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="ClassUtil (jackson-databind 2.1.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/util/BeanUtil.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Comparators.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="ClassUtil.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.util</FONT> 93<BR> 94Class ClassUtil</H2> 95<PRE> 96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.util.ClassUtil</B> 98</PRE> 99<HR> 100<DL> 101<DT><PRE>public final class <B>ClassUtil</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL> 102</PRE> 103 104<P> 105<HR> 106 107<P> 108 109<!-- ======== CONSTRUCTOR SUMMARY ======== --> 110 111<A NAME="constructor_summary"><!-- --></A> 112<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 113<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 114<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 115<B>Constructor Summary</B></FONT></TH> 116</TR> 117<TR BGCOLOR="white" CLASS="TableRowColor"> 118<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#ClassUtil()">ClassUtil</A></B>()</CODE> 119 120<BR> 121 </TD> 122</TR> 123</TABLE> 124 125<!-- ========== METHOD SUMMARY =========== --> 126 127<A NAME="method_summary"><!-- --></A> 128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 129<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 130<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 131<B>Method Summary</B></FONT></TH> 132</TR> 133<TR BGCOLOR="white" CLASS="TableRowColor"> 134<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 135<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 136<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#canBeABeanType(java.lang.Class)">canBeABeanType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</CODE> 137 138<BR> 139 </TD> 140</TR> 141<TR BGCOLOR="white" CLASS="TableRowColor"> 142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 143<CODE>static void</CODE></FONT></TD> 144<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#checkAndFixAccess(java.lang.reflect.Member)">checkAndFixAccess</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</A> member)</CODE> 145 146<BR> 147 Method called to check if we can use the passed method or constructor 148 (wrt access restriction -- public methods can be called, others 149 usually not); and if not, if there is a work-around for 150 the problem.</TD> 151</TR> 152<TR BGCOLOR="white" CLASS="TableRowColor"> 153<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 154<CODE>static 155<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 156<TR ALIGN="right" VALIGN=""> 157<TD NOWRAP><FONT SIZE="-1"> 158<CODE><T> T</CODE></FONT></TD> 159</TR> 160</TABLE> 161</CODE></FONT></TD> 162<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#createInstance(java.lang.Class, boolean)">createInstance</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> cls, 163 boolean canFixAccess)</CODE> 164 165<BR> 166 Method that can be called to try to create an instantiate of 167 specified type.</TD> 168</TR> 169<TR BGCOLOR="white" CLASS="TableRowColor"> 170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 171<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></FONT></TD> 172<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#defaultValue(java.lang.Class)">defaultValue</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</CODE> 173 174<BR> 175 Helper method used to get default value for wrappers used for primitive types 176 (0 for Integer etc)</TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?></CODE></FONT></TD> 181<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findClass(java.lang.String)">findClass</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className)</CODE> 182 183<BR> 184 </TD> 185</TR> 186<TR BGCOLOR="white" CLASS="TableRowColor"> 187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 188<CODE>static 189<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 190<TR ALIGN="right" VALIGN=""> 191<TD NOWRAP><FONT SIZE="-1"> 192<CODE><T> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</A><T></CODE></FONT></TD> 193</TR> 194</TABLE> 195</CODE></FONT></TD> 196<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findConstructor(java.lang.Class, boolean)">findConstructor</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> cls, 197 boolean canFixAccess)</CODE> 198 199<BR> 200 </TD> 201</TR> 202<TR BGCOLOR="white" CLASS="TableRowColor"> 203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 204<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>></CODE></FONT></TD> 205<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.lang.Class)">findEnumType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</CODE> 206 207<BR> 208 Helper method that can be used to dynamically figure out formal 209 enumeration type (class) for given class of an enumeration value.</TD> 210</TR> 211<TR BGCOLOR="white" CLASS="TableRowColor"> 212<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 213<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>></CODE></FONT></TD> 214<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.lang.Enum)">findEnumType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> en)</CODE> 215 216<BR> 217 Helper method that can be used to dynamically figure out formal 218 enumeration type (class) for given enumeration.</TD> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 222<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>></CODE></FONT></TD> 223<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.util.EnumMap)">findEnumType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumMap.html?is-external=true" title="class or interface in java.util">EnumMap</A><?,?> m)</CODE> 224 225<BR> 226 Helper method that can be used to dynamically figure out 227 enumeration type of given <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><CODE>EnumSet</CODE></A>, without having 228 access to its declaration.</TD> 229</TR> 230<TR BGCOLOR="white" CLASS="TableRowColor"> 231<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 232<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>></CODE></FONT></TD> 233<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.util.EnumSet)">findEnumType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</A><?> s)</CODE> 234 235<BR> 236 Helper method that can be used to dynamically figure out 237 enumeration type of given <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><CODE>EnumSet</CODE></A>, without having 238 access to its declaration.</TD> 239</TR> 240<TR BGCOLOR="white" CLASS="TableRowColor"> 241<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 242<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>></CODE></FONT></TD> 243<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperTypes(java.lang.Class, java.lang.Class)">findSuperTypes</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls, 244 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> endBefore)</CODE> 245 246<BR> 247 Method that will find all sub-classes and implemented interfaces 248 of a given class or interface.</TD> 249</TR> 250<TR BGCOLOR="white" CLASS="TableRowColor"> 251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 252<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>></CODE></FONT></TD> 253<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperTypes(java.lang.Class, java.lang.Class, java.util.List)">findSuperTypes</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls, 254 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> endBefore, 255 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>> result)</CODE> 256 257<BR> 258 </TD> 259</TR> 260<TR BGCOLOR="white" CLASS="TableRowColor"> 261<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 262<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 263<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getClassDescription(java.lang.Object)">getClassDescription</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> classOrInstance)</CODE> 264 265<BR> 266 Helper method used to construct appropriate description 267 when passed either type (Class) or an instance; in latter 268 case, class of instance is to be used.</TD> 269</TR> 270<TR BGCOLOR="white" CLASS="TableRowColor"> 271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 272<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?></CODE></FONT></TD> 273<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getOuterClass(java.lang.Class)">getOuterClass</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</CODE> 274 275<BR> 276 Method for finding enclosing class for non-static inner classes</TD> 277</TR> 278<TR BGCOLOR="white" CLASS="TableRowColor"> 279<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 280<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A></CODE></FONT></TD> 281<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getRootCause(java.lang.Throwable)">getRootCause</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</CODE> 282 283<BR> 284 Method that can be used to find the "root cause", innermost 285 of chained (wrapped) exceptions.</TD> 286</TR> 287<TR BGCOLOR="white" CLASS="TableRowColor"> 288<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 289<CODE>static boolean</CODE></FONT></TD> 290<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#hasGetterSignature(java.lang.reflect.Method)">hasGetterSignature</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> m)</CODE> 291 292<BR> 293 </TD> 294</TR> 295<TR BGCOLOR="white" CLASS="TableRowColor"> 296<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 297<CODE>static boolean</CODE></FONT></TD> 298<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isCollectionMapOrArray(java.lang.Class)">isCollectionMapOrArray</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</CODE> 299 300<BR> 301 </TD> 302</TR> 303<TR BGCOLOR="white" CLASS="TableRowColor"> 304<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 305<CODE>static boolean</CODE></FONT></TD> 306<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isConcrete(java.lang.Class)">isConcrete</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</CODE> 307 308<BR> 309 Helper method that checks if given class is a concrete one; 310 that is, not an interface or abstract class.</TD> 311</TR> 312<TR BGCOLOR="white" CLASS="TableRowColor"> 313<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 314<CODE>static boolean</CODE></FONT></TD> 315<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isConcrete(java.lang.reflect.Member)">isConcrete</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</A> member)</CODE> 316 317<BR> 318 </TD> 319</TR> 320<TR BGCOLOR="white" CLASS="TableRowColor"> 321<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 322<CODE>static boolean</CODE></FONT></TD> 323<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isJacksonStdImpl(java.lang.Class)">isJacksonStdImpl</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> implClass)</CODE> 324 325<BR> 326 </TD> 327</TR> 328<TR BGCOLOR="white" CLASS="TableRowColor"> 329<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 330<CODE>static boolean</CODE></FONT></TD> 331<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isJacksonStdImpl(java.lang.Object)">isJacksonStdImpl</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> impl)</CODE> 332 333<BR> 334 Method that can be called to determine if given Object is the default 335 implementation Jackson uses; as opposed to a custom serializer installed by 336 a module or calling application.</TD> 337</TR> 338<TR BGCOLOR="white" CLASS="TableRowColor"> 339<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 340<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 341<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isLocalType(java.lang.Class, boolean)">isLocalType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type, 342 boolean allowNonStatic)</CODE> 343 344<BR> 345 </TD> 346</TR> 347<TR BGCOLOR="white" CLASS="TableRowColor"> 348<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 349<CODE>static boolean</CODE></FONT></TD> 350<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isProxyType(java.lang.Class)">isProxyType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</CODE> 351 352<BR> 353 Helper method used to weed out dynamic Proxy types; types that do 354 not expose concrete method API that we could use to figure out 355 automatic Bean (property) based serialization.</TD> 356</TR> 357<TR BGCOLOR="white" CLASS="TableRowColor"> 358<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 359<CODE>static void</CODE></FONT></TD> 360<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwAsIAE(java.lang.Throwable)">throwAsIAE</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</CODE> 361 362<BR> 363 Method that will wrap 't' as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 364 is a checked exception; otherwise (runtime exception or error) throw as is</TD> 365</TR> 366<TR BGCOLOR="white" CLASS="TableRowColor"> 367<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 368<CODE>static void</CODE></FONT></TD> 369<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwAsIAE(java.lang.Throwable, java.lang.String)">throwAsIAE</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t, 370 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</CODE> 371 372<BR> 373 Method that will wrap 't' as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> (and with 374 specified message) if it 375 is a checked exception; otherwise (runtime exception or error) throw as is</TD> 376</TR> 377<TR BGCOLOR="white" CLASS="TableRowColor"> 378<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 379<CODE>static void</CODE></FONT></TD> 380<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwRootCause(java.lang.Throwable)">throwRootCause</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</CODE> 381 382<BR> 383 Method that will unwrap root causes of given Throwable, and throw 384 the innermost <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><CODE>Exception</CODE></A> or <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><CODE>Error</CODE></A> as is.</TD> 385</TR> 386<TR BGCOLOR="white" CLASS="TableRowColor"> 387<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 388<CODE>static void</CODE></FONT></TD> 389<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#unwrapAndThrowAsIAE(java.lang.Throwable)">unwrapAndThrowAsIAE</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</CODE> 390 391<BR> 392 Method that will locate the innermost exception for given Throwable; 393 and then wrap it as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 394 is a checked exception; otherwise (runtime exception or error) throw as is</TD> 395</TR> 396<TR BGCOLOR="white" CLASS="TableRowColor"> 397<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 398<CODE>static void</CODE></FONT></TD> 399<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#unwrapAndThrowAsIAE(java.lang.Throwable, java.lang.String)">unwrapAndThrowAsIAE</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t, 400 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</CODE> 401 402<BR> 403 Method that will locate the innermost exception for given Throwable; 404 and then wrap it as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 405 is a checked exception; otherwise (runtime exception or error) throw as is</TD> 406</TR> 407<TR BGCOLOR="white" CLASS="TableRowColor"> 408<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 409<CODE>static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?></CODE></FONT></TD> 410<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#wrapperType(java.lang.Class)">wrapperType</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> primitiveType)</CODE> 411 412<BR> 413 Helper method for finding wrapper type for given primitive type (why isn't 414 there one in JDK?)</TD> 415</TR> 416</TABLE> 417 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 418<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 419<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 420<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 421</TR> 422<TR BGCOLOR="white" CLASS="TableRowColor"> 423<TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 424</TR> 425</TABLE> 426 427<P> 428 429<!-- ========= CONSTRUCTOR DETAIL ======== --> 430 431<A NAME="constructor_detail"><!-- --></A> 432<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 433<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 434<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 435<B>Constructor Detail</B></FONT></TH> 436</TR> 437</TABLE> 438 439<A NAME="ClassUtil()"><!-- --></A><H3> 440ClassUtil</H3> 441<PRE> 442public <B>ClassUtil</B>()</PRE> 443<DL> 444</DL> 445 446<!-- ============ METHOD DETAIL ========== --> 447 448<A NAME="method_detail"><!-- --></A> 449<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 450<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 451<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 452<B>Method Detail</B></FONT></TH> 453</TR> 454</TABLE> 455 456<A NAME="findSuperTypes(java.lang.Class, java.lang.Class)"><!-- --></A><H3> 457findSuperTypes</H3> 458<PRE> 459public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>> <B>findSuperTypes</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls, 460 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> endBefore)</PRE> 461<DL> 462<DD>Method that will find all sub-classes and implemented interfaces 463 of a given class or interface. Classes are listed in order of 464 precedence, starting with the immediate super-class, followed by 465 interfaces class directly declares to implemented, and then recursively 466 followed by parent of super-class and so forth. 467 Note that <code>Object.class</code> is not included in the list 468 regardless of whether <code>endBefore</code> argument is defined or not. 469<P> 470<DD><DL> 471<DT><B>Parameters:</B><DD><CODE>endBefore</CODE> - Super-type to NOT include in results, if any; when 472 encountered, will be ignored (and no super types are checked).</DL> 473</DD> 474</DL> 475<HR> 476 477<A NAME="findSuperTypes(java.lang.Class, java.lang.Class, java.util.List)"><!-- --></A><H3> 478findSuperTypes</H3> 479<PRE> 480public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>> <B>findSuperTypes</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls, 481 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> endBefore, 482 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>> result)</PRE> 483<DL> 484<DD><DL> 485</DL> 486</DD> 487</DL> 488<HR> 489 490<A NAME="canBeABeanType(java.lang.Class)"><!-- --></A><H3> 491canBeABeanType</H3> 492<PRE> 493public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>canBeABeanType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE> 494<DL> 495<DD><DL> 496 497<DT><B>Returns:</B><DD>Null if class might be a bean; type String (that identifies 498 why it's not a bean) if not</DL> 499</DD> 500</DL> 501<HR> 502 503<A NAME="isLocalType(java.lang.Class, boolean)"><!-- --></A><H3> 504isLocalType</H3> 505<PRE> 506public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>isLocalType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type, 507 boolean allowNonStatic)</PRE> 508<DL> 509<DD><DL> 510</DL> 511</DD> 512</DL> 513<HR> 514 515<A NAME="getOuterClass(java.lang.Class)"><!-- --></A><H3> 516getOuterClass</H3> 517<PRE> 518public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> <B>getOuterClass</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE> 519<DL> 520<DD>Method for finding enclosing class for non-static inner classes 521<P> 522<DD><DL> 523</DL> 524</DD> 525</DL> 526<HR> 527 528<A NAME="isProxyType(java.lang.Class)"><!-- --></A><H3> 529isProxyType</H3> 530<PRE> 531public static boolean <B>isProxyType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE> 532<DL> 533<DD>Helper method used to weed out dynamic Proxy types; types that do 534 not expose concrete method API that we could use to figure out 535 automatic Bean (property) based serialization. 536<P> 537<DD><DL> 538</DL> 539</DD> 540</DL> 541<HR> 542 543<A NAME="isConcrete(java.lang.Class)"><!-- --></A><H3> 544isConcrete</H3> 545<PRE> 546public static boolean <B>isConcrete</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE> 547<DL> 548<DD>Helper method that checks if given class is a concrete one; 549 that is, not an interface or abstract class. 550<P> 551<DD><DL> 552</DL> 553</DD> 554</DL> 555<HR> 556 557<A NAME="isConcrete(java.lang.reflect.Member)"><!-- --></A><H3> 558isConcrete</H3> 559<PRE> 560public static boolean <B>isConcrete</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</A> member)</PRE> 561<DL> 562<DD><DL> 563</DL> 564</DD> 565</DL> 566<HR> 567 568<A NAME="isCollectionMapOrArray(java.lang.Class)"><!-- --></A><H3> 569isCollectionMapOrArray</H3> 570<PRE> 571public static boolean <B>isCollectionMapOrArray</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type)</PRE> 572<DL> 573<DD><DL> 574</DL> 575</DD> 576</DL> 577<HR> 578 579<A NAME="getClassDescription(java.lang.Object)"><!-- --></A><H3> 580getClassDescription</H3> 581<PRE> 582public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getClassDescription</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> classOrInstance)</PRE> 583<DL> 584<DD>Helper method used to construct appropriate description 585 when passed either type (Class) or an instance; in latter 586 case, class of instance is to be used. 587<P> 588<DD><DL> 589</DL> 590</DD> 591</DL> 592<HR> 593 594<A NAME="findClass(java.lang.String)"><!-- --></A><H3> 595findClass</H3> 596<PRE> 597public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> <B>findClass</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> className) 598 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></PRE> 599<DL> 600<DD><DL> 601 602<DT><B>Throws:</B> 603<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/ClassNotFoundException.html?is-external=true" title="class or interface in java.lang">ClassNotFoundException</A></CODE></DL> 604</DD> 605</DL> 606<HR> 607 608<A NAME="hasGetterSignature(java.lang.reflect.Method)"><!-- --></A><H3> 609hasGetterSignature</H3> 610<PRE> 611public static boolean <B>hasGetterSignature</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> m)</PRE> 612<DL> 613<DD><DL> 614</DL> 615</DD> 616</DL> 617<HR> 618 619<A NAME="getRootCause(java.lang.Throwable)"><!-- --></A><H3> 620getRootCause</H3> 621<PRE> 622public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> <B>getRootCause</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</PRE> 623<DL> 624<DD>Method that can be used to find the "root cause", innermost 625 of chained (wrapped) exceptions. 626<P> 627<DD><DL> 628</DL> 629</DD> 630</DL> 631<HR> 632 633<A NAME="throwRootCause(java.lang.Throwable)"><!-- --></A><H3> 634throwRootCause</H3> 635<PRE> 636public static void <B>throwRootCause</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t) 637 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE> 638<DL> 639<DD>Method that will unwrap root causes of given Throwable, and throw 640 the innermost <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><CODE>Exception</CODE></A> or <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><CODE>Error</CODE></A> as is. 641 This is useful in cases where mandatory wrapping is added, which 642 is often done by Reflection API. 643<P> 644<DD><DL> 645 646<DT><B>Throws:</B> 647<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></CODE></DL> 648</DD> 649</DL> 650<HR> 651 652<A NAME="throwAsIAE(java.lang.Throwable)"><!-- --></A><H3> 653throwAsIAE</H3> 654<PRE> 655public static void <B>throwAsIAE</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</PRE> 656<DL> 657<DD>Method that will wrap 't' as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 658 is a checked exception; otherwise (runtime exception or error) throw as is 659<P> 660<DD><DL> 661</DL> 662</DD> 663</DL> 664<HR> 665 666<A NAME="throwAsIAE(java.lang.Throwable, java.lang.String)"><!-- --></A><H3> 667throwAsIAE</H3> 668<PRE> 669public static void <B>throwAsIAE</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t, 670 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</PRE> 671<DL> 672<DD>Method that will wrap 't' as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> (and with 673 specified message) if it 674 is a checked exception; otherwise (runtime exception or error) throw as is 675<P> 676<DD><DL> 677</DL> 678</DD> 679</DL> 680<HR> 681 682<A NAME="unwrapAndThrowAsIAE(java.lang.Throwable)"><!-- --></A><H3> 683unwrapAndThrowAsIAE</H3> 684<PRE> 685public static void <B>unwrapAndThrowAsIAE</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t)</PRE> 686<DL> 687<DD>Method that will locate the innermost exception for given Throwable; 688 and then wrap it as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 689 is a checked exception; otherwise (runtime exception or error) throw as is 690<P> 691<DD><DL> 692</DL> 693</DD> 694</DL> 695<HR> 696 697<A NAME="unwrapAndThrowAsIAE(java.lang.Throwable, java.lang.String)"><!-- --></A><H3> 698unwrapAndThrowAsIAE</H3> 699<PRE> 700public static void <B>unwrapAndThrowAsIAE</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A> t, 701 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> msg)</PRE> 702<DL> 703<DD>Method that will locate the innermost exception for given Throwable; 704 and then wrap it as an <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><CODE>IllegalArgumentException</CODE></A> if it 705 is a checked exception; otherwise (runtime exception or error) throw as is 706<P> 707<DD><DL> 708</DL> 709</DD> 710</DL> 711<HR> 712 713<A NAME="createInstance(java.lang.Class, boolean)"><!-- --></A><H3> 714createInstance</H3> 715<PRE> 716public static <T> T <B>createInstance</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> cls, 717 boolean canFixAccess) 718 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></PRE> 719<DL> 720<DD>Method that can be called to try to create an instantiate of 721 specified type. Instantiation is done using default no-argument 722 constructor. 723<P> 724<DD><DL> 725<DT><B>Parameters:</B><DD><CODE>canFixAccess</CODE> - Whether it is possible to try to change access 726 rights of the default constructor (in case it is not publicly 727 accessible) or not. 728<DT><B>Throws:</B> 729<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If instantiation fails for any reason; 730 except for cases where constructor throws an unchecked exception 731 (which will be passed as is)</DL> 732</DD> 733</DL> 734<HR> 735 736<A NAME="findConstructor(java.lang.Class, boolean)"><!-- --></A><H3> 737findConstructor</H3> 738<PRE> 739public static <T> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</A><T> <B>findConstructor</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> cls, 740 boolean canFixAccess) 741 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></PRE> 742<DL> 743<DD><DL> 744 745<DT><B>Throws:</B> 746<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE></DL> 747</DD> 748</DL> 749<HR> 750 751<A NAME="defaultValue(java.lang.Class)"><!-- --></A><H3> 752defaultValue</H3> 753<PRE> 754public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> <B>defaultValue</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</PRE> 755<DL> 756<DD>Helper method used to get default value for wrappers used for primitive types 757 (0 for Integer etc) 758<P> 759<DD><DL> 760</DL> 761</DD> 762</DL> 763<HR> 764 765<A NAME="wrapperType(java.lang.Class)"><!-- --></A><H3> 766wrapperType</H3> 767<PRE> 768public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> <B>wrapperType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> primitiveType)</PRE> 769<DL> 770<DD>Helper method for finding wrapper type for given primitive type (why isn't 771 there one in JDK?) 772<P> 773<DD><DL> 774</DL> 775</DD> 776</DL> 777<HR> 778 779<A NAME="checkAndFixAccess(java.lang.reflect.Member)"><!-- --></A><H3> 780checkAndFixAccess</H3> 781<PRE> 782public static void <B>checkAndFixAccess</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</A> member)</PRE> 783<DL> 784<DD>Method called to check if we can use the passed method or constructor 785 (wrt access restriction -- public methods can be called, others 786 usually not); and if not, if there is a work-around for 787 the problem. 788<P> 789<DD><DL> 790</DL> 791</DD> 792</DL> 793<HR> 794 795<A NAME="findEnumType(java.util.EnumSet)"><!-- --></A><H3> 796findEnumType</H3> 797<PRE> 798public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>> <B>findEnumType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</A><?> s)</PRE> 799<DL> 800<DD>Helper method that can be used to dynamically figure out 801 enumeration type of given <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><CODE>EnumSet</CODE></A>, without having 802 access to its declaration. 803 Code is needed to work around design flaw in JDK. 804<P> 805<DD><DL> 806</DL> 807</DD> 808</DL> 809<HR> 810 811<A NAME="findEnumType(java.util.EnumMap)"><!-- --></A><H3> 812findEnumType</H3> 813<PRE> 814public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>> <B>findEnumType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumMap.html?is-external=true" title="class or interface in java.util">EnumMap</A><?,?> m)</PRE> 815<DL> 816<DD>Helper method that can be used to dynamically figure out 817 enumeration type of given <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><CODE>EnumSet</CODE></A>, without having 818 access to its declaration. 819 Code is needed to work around design flaw in JDK. 820<P> 821<DD><DL> 822</DL> 823</DD> 824</DL> 825<HR> 826 827<A NAME="findEnumType(java.lang.Enum)"><!-- --></A><H3> 828findEnumType</H3> 829<PRE> 830public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>> <B>findEnumType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?> en)</PRE> 831<DL> 832<DD>Helper method that can be used to dynamically figure out formal 833 enumeration type (class) for given enumeration. This is either 834 class of enum instance (for "simple" enumerations), or its 835 superclass (for enums with instance fields or methods) 836<P> 837<DD><DL> 838</DL> 839</DD> 840</DL> 841<HR> 842 843<A NAME="findEnumType(java.lang.Class)"><!-- --></A><H3> 844findEnumType</H3> 845<PRE> 846public static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><?>> <B>findEnumType</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> cls)</PRE> 847<DL> 848<DD>Helper method that can be used to dynamically figure out formal 849 enumeration type (class) for given class of an enumeration value. 850 This is either class of enum instance (for "simple" enumerations), 851 or its superclass (for enums with instance fields or methods) 852<P> 853<DD><DL> 854</DL> 855</DD> 856</DL> 857<HR> 858 859<A NAME="isJacksonStdImpl(java.lang.Object)"><!-- --></A><H3> 860isJacksonStdImpl</H3> 861<PRE> 862public static boolean <B>isJacksonStdImpl</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> impl)</PRE> 863<DL> 864<DD>Method that can be called to determine if given Object is the default 865 implementation Jackson uses; as opposed to a custom serializer installed by 866 a module or calling application. Determination is done using 867 <A HREF="../../../../../com/fasterxml/jackson/databind/annotation/JacksonStdImpl.html" title="annotation in com.fasterxml.jackson.databind.annotation"><CODE>JacksonStdImpl</CODE></A> annotation on handler (serializer, deserializer etc) 868 class. 869<P> 870<DD><DL> 871</DL> 872</DD> 873</DL> 874<HR> 875 876<A NAME="isJacksonStdImpl(java.lang.Class)"><!-- --></A><H3> 877isJacksonStdImpl</H3> 878<PRE> 879public static boolean <B>isJacksonStdImpl</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> implClass)</PRE> 880<DL> 881<DD><DL> 882</DL> 883</DD> 884</DL> 885<!-- ========= END OF CLASS DATA ========= --> 886<HR> 887 888 889<!-- ======= START OF BOTTOM NAVBAR ====== --> 890<A NAME="navbar_bottom"><!-- --></A> 891<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 892<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 893<TR> 894<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 895<A NAME="navbar_bottom_firstrow"><!-- --></A> 896<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 897 <TR ALIGN="center" VALIGN="top"> 898 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 899 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 900 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 901 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ClassUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 902 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 903 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 904 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 905 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 906 </TR> 907</TABLE> 908</TD> 909<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 910</EM> 911</TD> 912</TR> 913 914<TR> 915<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 916 <A HREF="../../../../../com/fasterxml/jackson/databind/util/BeanUtil.html" title="class in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 917 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Comparators.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 918<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 919 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top"><B>FRAMES</B></A> 920 <A HREF="ClassUtil.html" target="_top"><B>NO FRAMES</B></A> 921 <SCRIPT type="text/javascript"> 922 <!-- 923 if(window==top) { 924 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 925 } 926 //--> 927</SCRIPT> 928<NOSCRIPT> 929 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 930</NOSCRIPT> 931 932 933</FONT></TD> 934</TR> 935<TR> 936<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 937 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 938<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 939DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 940</TR> 941</TABLE> 942<A NAME="skip-navbar_bottom"></A> 943<!-- ======== END OF BOTTOM NAVBAR ======= --> 944 945<HR> 946Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 947</BODY> 948</HTML> 949