1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Sat Nov 16 21:43:20 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>ClassUtil (jackson-databind 2.3.0 API)</title> 8<meta name="date" content="2013-11-16"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="ClassUtil (jackson-databind 2.3.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/ClassUtil.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../../index-all.html">Index</a></li> 35<li><a href="../../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top">Frames</a></li> 45<li><a href="ClassUtil.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li>Field | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li>Field | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind.util</div> 84<h2 title="Class ClassUtil" class="title">Class ClassUtil</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><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></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.util.ClassUtil</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<hr> 99<br> 100<pre>public final class <span class="strong">ClassUtil</span> 101extends <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></pre> 102</li> 103</ul> 104</div> 105<div class="summary"> 106<ul class="blockList"> 107<li class="blockList"> 108<!-- ======== CONSTRUCTOR SUMMARY ======== --> 109<ul class="blockList"> 110<li class="blockList"><a name="constructor_summary"> 111<!-- --> 112</a> 113<h3>Constructor Summary</h3> 114<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 115<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 116<tr> 117<th class="colOne" scope="col">Constructor and Description</th> 118</tr> 119<tr class="altColor"> 120<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#ClassUtil()">ClassUtil</a></strong>()</code> </td> 121</tr> 122</table> 123</li> 124</ul> 125<!-- ========== METHOD SUMMARY =========== --> 126<ul class="blockList"> 127<li class="blockList"><a name="method_summary"> 128<!-- --> 129</a> 130<h3>Method Summary</h3> 131<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 132<caption><span>Methods</span><span class="tabEnd"> </span></caption> 133<tr> 134<th class="colFirst" scope="col">Modifier and Type</th> 135<th class="colLast" scope="col">Method and Description</th> 136</tr> 137<tr class="altColor"> 138<td class="colFirst"><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></td> 139<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#canBeABeanType(java.lang.Class)">canBeABeanType</a></strong>(<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> </td> 140</tr> 141<tr class="rowColor"> 142<td class="colFirst"><code>static void</code></td> 143<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#checkAndFixAccess(java.lang.reflect.Member)">checkAndFixAccess</a></strong>(<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> 144<div class="block">Method called to check if we can use the passed method or constructor 145 (wrt access restriction -- public methods can be called, others 146 usually not); and if not, if there is a work-around for 147 the problem.</div> 148</td> 149</tr> 150<tr class="altColor"> 151<td class="colFirst"><code>static <T> T</code></td> 152<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#createInstance(java.lang.Class, boolean)">createInstance</a></strong>(<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, 153 boolean canFixAccess)</code> 154<div class="block">Method that can be called to try to create an instantiate of 155 specified type.</div> 156</td> 157</tr> 158<tr class="rowColor"> 159<td class="colFirst"><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></td> 160<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#defaultValue(java.lang.Class)">defaultValue</a></strong>(<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> 161<div class="block">Helper method used to get default value for wrappers used for primitive types 162 (0 for Integer etc)</div> 163</td> 164</tr> 165<tr class="altColor"> 166<td class="colFirst"><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></td> 167<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findClass(java.lang.String)">findClass</a></strong>(<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> </td> 168</tr> 169<tr class="rowColor"> 170<td class="colFirst"><code>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></code></td> 171<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findConstructor(java.lang.Class, boolean)">findConstructor</a></strong>(<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, 172 boolean canFixAccess)</code> </td> 173</tr> 174<tr class="altColor"> 175<td class="colFirst"><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></td> 176<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.lang.Class)">findEnumType</a></strong>(<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> 177<div class="block">Helper method that can be used to dynamically figure out formal 178 enumeration type (class) for given class of an enumeration value.</div> 179</td> 180</tr> 181<tr class="rowColor"> 182<td class="colFirst"><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></td> 183<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.lang.Enum)">findEnumType</a></strong>(<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> 184<div class="block">Helper method that can be used to dynamically figure out formal 185 enumeration type (class) for given enumeration.</div> 186</td> 187</tr> 188<tr class="altColor"> 189<td class="colFirst"><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></td> 190<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.util.EnumMap)">findEnumType</a></strong>(<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> 191<div class="block">Helper method that can be used to dynamically figure out 192 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 193 access to its declaration.</div> 194</td> 195</tr> 196<tr class="rowColor"> 197<td class="colFirst"><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></td> 198<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findEnumType(java.util.EnumSet)">findEnumType</a></strong>(<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> 199<div class="block">Helper method that can be used to dynamically figure out 200 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 201 access to its declaration.</div> 202</td> 203</tr> 204<tr class="altColor"> 205<td class="colFirst"><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></td> 206<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperTypes(java.lang.Class, java.lang.Class)">findSuperTypes</a></strong>(<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, 207 <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> 208<div class="block">Method that will find all sub-classes and implemented interfaces 209 of a given class or interface.</div> 210</td> 211</tr> 212<tr class="rowColor"> 213<td class="colFirst"><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></td> 214<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperTypes(java.lang.Class, java.lang.Class, java.util.List)">findSuperTypes</a></strong>(<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, 215 <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, 216 <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> </td> 217</tr> 218<tr class="altColor"> 219<td class="colFirst"><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></td> 220<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getClassDescription(java.lang.Object)">getClassDescription</a></strong>(<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> 221<div class="block">Helper method used to construct appropriate description 222 when passed either type (Class) or an instance; in latter 223 case, class of instance is to be used.</div> 224</td> 225</tr> 226<tr class="rowColor"> 227<td class="colFirst"><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></td> 228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getOuterClass(java.lang.Class)">getOuterClass</a></strong>(<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> 229<div class="block">Method for finding enclosing class for non-static inner classes</div> 230</td> 231</tr> 232<tr class="altColor"> 233<td class="colFirst"><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></td> 234<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getRootCause(java.lang.Throwable)">getRootCause</a></strong>(<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> 235<div class="block">Method that can be used to find the "root cause", innermost 236 of chained (wrapped) exceptions.</div> 237</td> 238</tr> 239<tr class="rowColor"> 240<td class="colFirst"><code>static boolean</code></td> 241<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#hasGetterSignature(java.lang.reflect.Method)">hasGetterSignature</a></strong>(<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> </td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code>static boolean</code></td> 245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isCollectionMapOrArray(java.lang.Class)">isCollectionMapOrArray</a></strong>(<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> </td> 246</tr> 247<tr class="rowColor"> 248<td class="colFirst"><code>static boolean</code></td> 249<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isConcrete(java.lang.Class)">isConcrete</a></strong>(<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> 250<div class="block">Helper method that checks if given class is a concrete one; 251 that is, not an interface or abstract class.</div> 252</td> 253</tr> 254<tr class="altColor"> 255<td class="colFirst"><code>static boolean</code></td> 256<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isConcrete(java.lang.reflect.Member)">isConcrete</a></strong>(<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> </td> 257</tr> 258<tr class="rowColor"> 259<td class="colFirst"><code>static boolean</code></td> 260<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isJacksonStdImpl(java.lang.Class)">isJacksonStdImpl</a></strong>(<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> </td> 261</tr> 262<tr class="altColor"> 263<td class="colFirst"><code>static boolean</code></td> 264<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isJacksonStdImpl(java.lang.Object)">isJacksonStdImpl</a></strong>(<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> 265<div class="block">Method that can be called to determine if given Object is the default 266 implementation Jackson uses; as opposed to a custom serializer installed by 267 a module or calling application.</div> 268</td> 269</tr> 270<tr class="rowColor"> 271<td class="colFirst"><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></td> 272<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isLocalType(java.lang.Class, boolean)">isLocalType</a></strong>(<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, 273 boolean allowNonStatic)</code> </td> 274</tr> 275<tr class="altColor"> 276<td class="colFirst"><code>static boolean</code></td> 277<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isProxyType(java.lang.Class)">isProxyType</a></strong>(<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> 278<div class="block">Helper method used to weed out dynamic Proxy types; types that do 279 not expose concrete method API that we could use to figure out 280 automatic Bean (property) based serialization.</div> 281</td> 282</tr> 283<tr class="rowColor"> 284<td class="colFirst"><code>static void</code></td> 285<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwAsIAE(java.lang.Throwable)">throwAsIAE</a></strong>(<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> 286<div class="block">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 287 is a checked exception; otherwise (runtime exception or error) throw as is</div> 288</td> 289</tr> 290<tr class="altColor"> 291<td class="colFirst"><code>static void</code></td> 292<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwAsIAE(java.lang.Throwable, java.lang.String)">throwAsIAE</a></strong>(<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, 293 <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> 294<div class="block">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 295 specified message) if it 296 is a checked exception; otherwise (runtime exception or error) throw as is</div> 297</td> 298</tr> 299<tr class="rowColor"> 300<td class="colFirst"><code>static void</code></td> 301<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwRootCause(java.lang.Throwable)">throwRootCause</a></strong>(<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> 302<div class="block">Method that will unwrap root causes of given Throwable, and throw 303 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.</div> 304</td> 305</tr> 306<tr class="altColor"> 307<td class="colFirst"><code>static void</code></td> 308<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#unwrapAndThrowAsIAE(java.lang.Throwable)">unwrapAndThrowAsIAE</a></strong>(<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> 309<div class="block">Method that will locate the innermost exception for given Throwable; 310 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 311 is a checked exception; otherwise (runtime exception or error) throw as is</div> 312</td> 313</tr> 314<tr class="rowColor"> 315<td class="colFirst"><code>static void</code></td> 316<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#unwrapAndThrowAsIAE(java.lang.Throwable, java.lang.String)">unwrapAndThrowAsIAE</a></strong>(<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, 317 <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> 318<div class="block">Method that will locate the innermost exception for given Throwable; 319 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 320 is a checked exception; otherwise (runtime exception or error) throw as is</div> 321</td> 322</tr> 323<tr class="altColor"> 324<td class="colFirst"><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></td> 325<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#wrapperType(java.lang.Class)">wrapperType</a></strong>(<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> 326<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 327 there one in JDK?)</div> 328</td> 329</tr> 330</table> 331<ul class="blockList"> 332<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 333<!-- --> 334</a> 335<h3>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></h3> 336<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></li> 337</ul> 338</li> 339</ul> 340</li> 341</ul> 342</div> 343<div class="details"> 344<ul class="blockList"> 345<li class="blockList"> 346<!-- ========= CONSTRUCTOR DETAIL ======== --> 347<ul class="blockList"> 348<li class="blockList"><a name="constructor_detail"> 349<!-- --> 350</a> 351<h3>Constructor Detail</h3> 352<a name="ClassUtil()"> 353<!-- --> 354</a> 355<ul class="blockListLast"> 356<li class="blockList"> 357<h4>ClassUtil</h4> 358<pre>public ClassUtil()</pre> 359</li> 360</ul> 361</li> 362</ul> 363<!-- ============ METHOD DETAIL ========== --> 364<ul class="blockList"> 365<li class="blockList"><a name="method_detail"> 366<!-- --> 367</a> 368<h3>Method Detail</h3> 369<a name="findSuperTypes(java.lang.Class, java.lang.Class)"> 370<!-- --> 371</a> 372<ul class="blockList"> 373<li class="blockList"> 374<h4>findSuperTypes</h4> 375<pre>public 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><?>> findSuperTypes(<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, 376 <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> 377<div class="block">Method that will find all sub-classes and implemented interfaces 378 of a given class or interface. Classes are listed in order of 379 precedence, starting with the immediate super-class, followed by 380 interfaces class directly declares to implemented, and then recursively 381 followed by parent of super-class and so forth. 382 Note that <code>Object.class</code> is not included in the list 383 regardless of whether <code>endBefore</code> argument is defined or not.</div> 384<dl><dt><span class="strong">Parameters:</span></dt><dd><code>endBefore</code> - Super-type to NOT include in results, if any; when 385 encountered, will be ignored (and no super types are checked).</dd></dl> 386</li> 387</ul> 388<a name="findSuperTypes(java.lang.Class, java.lang.Class, java.util.List)"> 389<!-- --> 390</a> 391<ul class="blockList"> 392<li class="blockList"> 393<h4>findSuperTypes</h4> 394<pre>public 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><?>> findSuperTypes(<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, 395 <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, 396 <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> 397</li> 398</ul> 399<a name="canBeABeanType(java.lang.Class)"> 400<!-- --> 401</a> 402<ul class="blockList"> 403<li class="blockList"> 404<h4>canBeABeanType</h4> 405<pre>public 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> canBeABeanType(<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> 406<dl><dt><span class="strong">Returns:</span></dt><dd>Null if class might be a bean; type String (that identifies 407 why it's not a bean) if not</dd></dl> 408</li> 409</ul> 410<a name="isLocalType(java.lang.Class, boolean)"> 411<!-- --> 412</a> 413<ul class="blockList"> 414<li class="blockList"> 415<h4>isLocalType</h4> 416<pre>public 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> isLocalType(<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, 417 boolean allowNonStatic)</pre> 418</li> 419</ul> 420<a name="getOuterClass(java.lang.Class)"> 421<!-- --> 422</a> 423<ul class="blockList"> 424<li class="blockList"> 425<h4>getOuterClass</h4> 426<pre>public 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><?> getOuterClass(<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> 427<div class="block">Method for finding enclosing class for non-static inner classes</div> 428</li> 429</ul> 430<a name="isProxyType(java.lang.Class)"> 431<!-- --> 432</a> 433<ul class="blockList"> 434<li class="blockList"> 435<h4>isProxyType</h4> 436<pre>public static boolean isProxyType(<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> 437<div class="block">Helper method used to weed out dynamic Proxy types; types that do 438 not expose concrete method API that we could use to figure out 439 automatic Bean (property) based serialization.</div> 440</li> 441</ul> 442<a name="isConcrete(java.lang.Class)"> 443<!-- --> 444</a> 445<ul class="blockList"> 446<li class="blockList"> 447<h4>isConcrete</h4> 448<pre>public static boolean isConcrete(<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> 449<div class="block">Helper method that checks if given class is a concrete one; 450 that is, not an interface or abstract class.</div> 451</li> 452</ul> 453<a name="isConcrete(java.lang.reflect.Member)"> 454<!-- --> 455</a> 456<ul class="blockList"> 457<li class="blockList"> 458<h4>isConcrete</h4> 459<pre>public static boolean isConcrete(<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> 460</li> 461</ul> 462<a name="isCollectionMapOrArray(java.lang.Class)"> 463<!-- --> 464</a> 465<ul class="blockList"> 466<li class="blockList"> 467<h4>isCollectionMapOrArray</h4> 468<pre>public static boolean isCollectionMapOrArray(<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> 469</li> 470</ul> 471<a name="getClassDescription(java.lang.Object)"> 472<!-- --> 473</a> 474<ul class="blockList"> 475<li class="blockList"> 476<h4>getClassDescription</h4> 477<pre>public 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> getClassDescription(<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> 478<div class="block">Helper method used to construct appropriate description 479 when passed either type (Class) or an instance; in latter 480 case, class of instance is to be used.</div> 481</li> 482</ul> 483<a name="findClass(java.lang.String)"> 484<!-- --> 485</a> 486<ul class="blockList"> 487<li class="blockList"> 488<h4>findClass</h4> 489<pre>public 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><?> findClass(<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) 490 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> 491<dl><dt><span class="strong">Throws:</span></dt> 492<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></dd></dl> 493</li> 494</ul> 495<a name="hasGetterSignature(java.lang.reflect.Method)"> 496<!-- --> 497</a> 498<ul class="blockList"> 499<li class="blockList"> 500<h4>hasGetterSignature</h4> 501<pre>public static boolean hasGetterSignature(<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> 502</li> 503</ul> 504<a name="getRootCause(java.lang.Throwable)"> 505<!-- --> 506</a> 507<ul class="blockList"> 508<li class="blockList"> 509<h4>getRootCause</h4> 510<pre>public 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> getRootCause(<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> 511<div class="block">Method that can be used to find the "root cause", innermost 512 of chained (wrapped) exceptions.</div> 513</li> 514</ul> 515<a name="throwRootCause(java.lang.Throwable)"> 516<!-- --> 517</a> 518<ul class="blockList"> 519<li class="blockList"> 520<h4>throwRootCause</h4> 521<pre>public static void throwRootCause(<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) 522 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> 523<div class="block">Method that will unwrap root causes of given Throwable, and throw 524 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. 525 This is useful in cases where mandatory wrapping is added, which 526 is often done by Reflection API.</div> 527<dl><dt><span class="strong">Throws:</span></dt> 528<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></dd></dl> 529</li> 530</ul> 531<a name="throwAsIAE(java.lang.Throwable)"> 532<!-- --> 533</a> 534<ul class="blockList"> 535<li class="blockList"> 536<h4>throwAsIAE</h4> 537<pre>public static void throwAsIAE(<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> 538<div class="block">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 539 is a checked exception; otherwise (runtime exception or error) throw as is</div> 540</li> 541</ul> 542<a name="throwAsIAE(java.lang.Throwable, java.lang.String)"> 543<!-- --> 544</a> 545<ul class="blockList"> 546<li class="blockList"> 547<h4>throwAsIAE</h4> 548<pre>public static void throwAsIAE(<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, 549 <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> 550<div class="block">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 551 specified message) if it 552 is a checked exception; otherwise (runtime exception or error) throw as is</div> 553</li> 554</ul> 555<a name="unwrapAndThrowAsIAE(java.lang.Throwable)"> 556<!-- --> 557</a> 558<ul class="blockList"> 559<li class="blockList"> 560<h4>unwrapAndThrowAsIAE</h4> 561<pre>public static void unwrapAndThrowAsIAE(<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> 562<div class="block">Method that will locate the innermost exception for given Throwable; 563 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 564 is a checked exception; otherwise (runtime exception or error) throw as is</div> 565</li> 566</ul> 567<a name="unwrapAndThrowAsIAE(java.lang.Throwable, java.lang.String)"> 568<!-- --> 569</a> 570<ul class="blockList"> 571<li class="blockList"> 572<h4>unwrapAndThrowAsIAE</h4> 573<pre>public static void unwrapAndThrowAsIAE(<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, 574 <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> 575<div class="block">Method that will locate the innermost exception for given Throwable; 576 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 577 is a checked exception; otherwise (runtime exception or error) throw as is</div> 578</li> 579</ul> 580<a name="createInstance(java.lang.Class, boolean)"> 581<!-- --> 582</a> 583<ul class="blockList"> 584<li class="blockList"> 585<h4>createInstance</h4> 586<pre>public static <T> T createInstance(<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, 587 boolean canFixAccess) 588 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> 589<div class="block">Method that can be called to try to create an instantiate of 590 specified type. Instantiation is done using default no-argument 591 constructor.</div> 592<dl><dt><span class="strong">Parameters:</span></dt><dd><code>canFixAccess</code> - Whether it is possible to try to change access 593 rights of the default constructor (in case it is not publicly 594 accessible) or not.</dd> 595<dt><span class="strong">Throws:</span></dt> 596<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; 597 except for cases where constructor throws an unchecked exception 598 (which will be passed as is)</dd></dl> 599</li> 600</ul> 601<a name="findConstructor(java.lang.Class, boolean)"> 602<!-- --> 603</a> 604<ul class="blockList"> 605<li class="blockList"> 606<h4>findConstructor</h4> 607<pre>public 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> findConstructor(<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, 608 boolean canFixAccess) 609 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> 610<dl><dt><span class="strong">Throws:</span></dt> 611<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></dd></dl> 612</li> 613</ul> 614<a name="defaultValue(java.lang.Class)"> 615<!-- --> 616</a> 617<ul class="blockList"> 618<li class="blockList"> 619<h4>defaultValue</h4> 620<pre>public 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> defaultValue(<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> 621<div class="block">Helper method used to get default value for wrappers used for primitive types 622 (0 for Integer etc)</div> 623</li> 624</ul> 625<a name="wrapperType(java.lang.Class)"> 626<!-- --> 627</a> 628<ul class="blockList"> 629<li class="blockList"> 630<h4>wrapperType</h4> 631<pre>public 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><?> wrapperType(<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> 632<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 633 there one in JDK?)</div> 634</li> 635</ul> 636<a name="checkAndFixAccess(java.lang.reflect.Member)"> 637<!-- --> 638</a> 639<ul class="blockList"> 640<li class="blockList"> 641<h4>checkAndFixAccess</h4> 642<pre>public static void checkAndFixAccess(<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> 643<div class="block">Method called to check if we can use the passed method or constructor 644 (wrt access restriction -- public methods can be called, others 645 usually not); and if not, if there is a work-around for 646 the problem.</div> 647</li> 648</ul> 649<a name="findEnumType(java.util.EnumSet)"> 650<!-- --> 651</a> 652<ul class="blockList"> 653<li class="blockList"> 654<h4>findEnumType</h4> 655<pre>public 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><?>> findEnumType(<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> 656<div class="block">Helper method that can be used to dynamically figure out 657 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 658 access to its declaration. 659 Code is needed to work around design flaw in JDK.</div> 660</li> 661</ul> 662<a name="findEnumType(java.util.EnumMap)"> 663<!-- --> 664</a> 665<ul class="blockList"> 666<li class="blockList"> 667<h4>findEnumType</h4> 668<pre>public 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><?>> findEnumType(<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> 669<div class="block">Helper method that can be used to dynamically figure out 670 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 671 access to its declaration. 672 Code is needed to work around design flaw in JDK.</div> 673</li> 674</ul> 675<a name="findEnumType(java.lang.Enum)"> 676<!-- --> 677</a> 678<ul class="blockList"> 679<li class="blockList"> 680<h4>findEnumType</h4> 681<pre>public 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><?>> findEnumType(<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> 682<div class="block">Helper method that can be used to dynamically figure out formal 683 enumeration type (class) for given enumeration. This is either 684 class of enum instance (for "simple" enumerations), or its 685 superclass (for enums with instance fields or methods)</div> 686</li> 687</ul> 688<a name="findEnumType(java.lang.Class)"> 689<!-- --> 690</a> 691<ul class="blockList"> 692<li class="blockList"> 693<h4>findEnumType</h4> 694<pre>public 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><?>> findEnumType(<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> 695<div class="block">Helper method that can be used to dynamically figure out formal 696 enumeration type (class) for given class of an enumeration value. 697 This is either class of enum instance (for "simple" enumerations), 698 or its superclass (for enums with instance fields or methods)</div> 699</li> 700</ul> 701<a name="isJacksonStdImpl(java.lang.Object)"> 702<!-- --> 703</a> 704<ul class="blockList"> 705<li class="blockList"> 706<h4>isJacksonStdImpl</h4> 707<pre>public static boolean isJacksonStdImpl(<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> 708<div class="block">Method that can be called to determine if given Object is the default 709 implementation Jackson uses; as opposed to a custom serializer installed by 710 a module or calling application. Determination is done using 711 <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) 712 class.</div> 713</li> 714</ul> 715<a name="isJacksonStdImpl(java.lang.Class)"> 716<!-- --> 717</a> 718<ul class="blockListLast"> 719<li class="blockList"> 720<h4>isJacksonStdImpl</h4> 721<pre>public static boolean isJacksonStdImpl(<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> 722</li> 723</ul> 724</li> 725</ul> 726</li> 727</ul> 728</div> 729</div> 730<!-- ========= END OF CLASS DATA ========= --> 731<!-- ======= START OF BOTTOM NAVBAR ====== --> 732<div class="bottomNav"><a name="navbar_bottom"> 733<!-- --> 734</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 735<!-- --> 736</a> 737<ul class="navList" title="Navigation"> 738<li><a href="../../../../../overview-summary.html">Overview</a></li> 739<li><a href="package-summary.html">Package</a></li> 740<li class="navBarCell1Rev">Class</li> 741<li><a href="class-use/ClassUtil.html">Use</a></li> 742<li><a href="package-tree.html">Tree</a></li> 743<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 744<li><a href="../../../../../index-all.html">Index</a></li> 745<li><a href="../../../../../help-doc.html">Help</a></li> 746</ul> 747</div> 748<div class="subNav"> 749<ul class="navList"> 750<li><a href="../../../../../com/fasterxml/jackson/databind/util/ByteBufferBackedOutputStream.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 751<li><a href="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 752</ul> 753<ul class="navList"> 754<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top">Frames</a></li> 755<li><a href="ClassUtil.html" target="_top">No Frames</a></li> 756</ul> 757<ul class="navList" id="allclasses_navbar_bottom"> 758<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 759</ul> 760<div> 761<script type="text/javascript"><!-- 762 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 763 if(window==top) { 764 allClassesLink.style.display = "block"; 765 } 766 else { 767 allClassesLink.style.display = "none"; 768 } 769 //--> 770</script> 771</div> 772<div> 773<ul class="subNavList"> 774<li>Summary: </li> 775<li>Nested | </li> 776<li>Field | </li> 777<li><a href="#constructor_summary">Constr</a> | </li> 778<li><a href="#method_summary">Method</a></li> 779</ul> 780<ul class="subNavList"> 781<li>Detail: </li> 782<li>Field | </li> 783<li><a href="#constructor_detail">Constr</a> | </li> 784<li><a href="#method_detail">Method</a></li> 785</ul> 786</div> 787<a name="skip-navbar_bottom"> 788<!-- --> 789</a></div> 790<!-- ======== END OF BOTTOM NAVBAR ======= --> 791<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 792</body> 793</html> 794