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 Thu Jan 01 17:43:58 PST 2015 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>ClassUtil (jackson-databind 2.5.0 API)</title> 8<meta name="date" content="2015-01-01"> 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.5.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/ContainerBuilder.html" title="class 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#isBogusClass(java.lang.Class)">isBogusClass</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> </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#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> 250</tr> 251<tr class="altColor"> 252<td class="colFirst"><code>static boolean</code></td> 253<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> 254<div class="block">Helper method that checks if given class is a concrete one; 255 that is, not an interface or abstract class.</div> 256</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#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> 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.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> 265</tr> 266<tr class="rowColor"> 267<td class="colFirst"><code>static boolean</code></td> 268<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> 269<div class="block">Method that can be called to determine if given Object is the default 270 implementation Jackson uses; as opposed to a custom serializer installed by 271 a module or calling application.</div> 272</td> 273</tr> 274<tr class="altColor"> 275<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> 276<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, 277 boolean allowNonStatic)</code> </td> 278</tr> 279<tr class="rowColor"> 280<td class="colFirst"><code>static boolean</code></td> 281<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isNonStaticInnerClass(java.lang.Class)">isNonStaticInnerClass</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> </td> 282</tr> 283<tr class="altColor"> 284<td class="colFirst"><code>static boolean</code></td> 285<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> 286<div class="block">Helper method used to weed out dynamic Proxy types; types that do 287 not expose concrete method API that we could use to figure out 288 automatic Bean (property) based serialization.</div> 289</td> 290</tr> 291<tr class="rowColor"> 292<td class="colFirst"><code>static void</code></td> 293<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> 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> if it 295 is a checked exception; otherwise (runtime exception or error) throw as is</div> 296</td> 297</tr> 298<tr class="altColor"> 299<td class="colFirst"><code>static void</code></td> 300<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, 301 <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> 302<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 303 specified message) if it 304 is a checked exception; otherwise (runtime exception or error) throw as is</div> 305</td> 306</tr> 307<tr class="rowColor"> 308<td class="colFirst"><code>static void</code></td> 309<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> 310<div class="block">Method that will unwrap root causes of given Throwable, and throw 311 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> 312</td> 313</tr> 314<tr class="altColor"> 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)">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> 317<div class="block">Method that will locate the innermost exception for given Throwable; 318 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 319 is a checked exception; otherwise (runtime exception or error) throw as is</div> 320</td> 321</tr> 322<tr class="rowColor"> 323<td class="colFirst"><code>static void</code></td> 324<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, 325 <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> 326<div class="block">Method that will locate the innermost exception for given Throwable; 327 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 328 is a checked exception; otherwise (runtime exception or error) throw as is</div> 329</td> 330</tr> 331<tr class="altColor"> 332<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> 333<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> 334<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 335 there one in JDK?)</div> 336</td> 337</tr> 338</table> 339<ul class="blockList"> 340<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 341<!-- --> 342</a> 343<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> 344<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> 345</ul> 346</li> 347</ul> 348</li> 349</ul> 350</div> 351<div class="details"> 352<ul class="blockList"> 353<li class="blockList"> 354<!-- ========= CONSTRUCTOR DETAIL ======== --> 355<ul class="blockList"> 356<li class="blockList"><a name="constructor_detail"> 357<!-- --> 358</a> 359<h3>Constructor Detail</h3> 360<a name="ClassUtil()"> 361<!-- --> 362</a> 363<ul class="blockListLast"> 364<li class="blockList"> 365<h4>ClassUtil</h4> 366<pre>public ClassUtil()</pre> 367</li> 368</ul> 369</li> 370</ul> 371<!-- ============ METHOD DETAIL ========== --> 372<ul class="blockList"> 373<li class="blockList"><a name="method_detail"> 374<!-- --> 375</a> 376<h3>Method Detail</h3> 377<a name="findSuperTypes(java.lang.Class, java.lang.Class)"> 378<!-- --> 379</a> 380<ul class="blockList"> 381<li class="blockList"> 382<h4>findSuperTypes</h4> 383<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, 384 <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> 385<div class="block">Method that will find all sub-classes and implemented interfaces 386 of a given class or interface. Classes are listed in order of 387 precedence, starting with the immediate super-class, followed by 388 interfaces class directly declares to implemented, and then recursively 389 followed by parent of super-class and so forth. 390 Note that <code>Object.class</code> is not included in the list 391 regardless of whether <code>endBefore</code> argument is defined or not.</div> 392<dl><dt><span class="strong">Parameters:</span></dt><dd><code>endBefore</code> - Super-type to NOT include in results, if any; when 393 encountered, will be ignored (and no super types are checked).</dd></dl> 394</li> 395</ul> 396<a name="findSuperTypes(java.lang.Class, java.lang.Class, java.util.List)"> 397<!-- --> 398</a> 399<ul class="blockList"> 400<li class="blockList"> 401<h4>findSuperTypes</h4> 402<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, 403 <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, 404 <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> 405</li> 406</ul> 407<a name="canBeABeanType(java.lang.Class)"> 408<!-- --> 409</a> 410<ul class="blockList"> 411<li class="blockList"> 412<h4>canBeABeanType</h4> 413<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> 414<dl><dt><span class="strong">Returns:</span></dt><dd>Null if class might be a bean; type String (that identifies 415 why it's not a bean) if not</dd></dl> 416</li> 417</ul> 418<a name="isLocalType(java.lang.Class, boolean)"> 419<!-- --> 420</a> 421<ul class="blockList"> 422<li class="blockList"> 423<h4>isLocalType</h4> 424<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, 425 boolean allowNonStatic)</pre> 426</li> 427</ul> 428<a name="getOuterClass(java.lang.Class)"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>getOuterClass</h4> 434<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> 435<div class="block">Method for finding enclosing class for non-static inner classes</div> 436</li> 437</ul> 438<a name="isProxyType(java.lang.Class)"> 439<!-- --> 440</a> 441<ul class="blockList"> 442<li class="blockList"> 443<h4>isProxyType</h4> 444<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> 445<div class="block">Helper method used to weed out dynamic Proxy types; types that do 446 not expose concrete method API that we could use to figure out 447 automatic Bean (property) based serialization.</div> 448</li> 449</ul> 450<a name="isConcrete(java.lang.Class)"> 451<!-- --> 452</a> 453<ul class="blockList"> 454<li class="blockList"> 455<h4>isConcrete</h4> 456<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> 457<div class="block">Helper method that checks if given class is a concrete one; 458 that is, not an interface or abstract class.</div> 459</li> 460</ul> 461<a name="isConcrete(java.lang.reflect.Member)"> 462<!-- --> 463</a> 464<ul class="blockList"> 465<li class="blockList"> 466<h4>isConcrete</h4> 467<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> 468</li> 469</ul> 470<a name="isCollectionMapOrArray(java.lang.Class)"> 471<!-- --> 472</a> 473<ul class="blockList"> 474<li class="blockList"> 475<h4>isCollectionMapOrArray</h4> 476<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> 477</li> 478</ul> 479<a name="getClassDescription(java.lang.Object)"> 480<!-- --> 481</a> 482<ul class="blockList"> 483<li class="blockList"> 484<h4>getClassDescription</h4> 485<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> 486<div class="block">Helper method used to construct appropriate description 487 when passed either type (Class) or an instance; in latter 488 case, class of instance is to be used.</div> 489</li> 490</ul> 491<a name="findClass(java.lang.String)"> 492<!-- --> 493</a> 494<ul class="blockList"> 495<li class="blockList"> 496<h4>findClass</h4> 497<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) 498 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> 499<dl><dt><span class="strong">Throws:</span></dt> 500<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> 501</li> 502</ul> 503<a name="hasGetterSignature(java.lang.reflect.Method)"> 504<!-- --> 505</a> 506<ul class="blockList"> 507<li class="blockList"> 508<h4>hasGetterSignature</h4> 509<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> 510</li> 511</ul> 512<a name="getRootCause(java.lang.Throwable)"> 513<!-- --> 514</a> 515<ul class="blockList"> 516<li class="blockList"> 517<h4>getRootCause</h4> 518<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> 519<div class="block">Method that can be used to find the "root cause", innermost 520 of chained (wrapped) exceptions.</div> 521</li> 522</ul> 523<a name="throwRootCause(java.lang.Throwable)"> 524<!-- --> 525</a> 526<ul class="blockList"> 527<li class="blockList"> 528<h4>throwRootCause</h4> 529<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) 530 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> 531<div class="block">Method that will unwrap root causes of given Throwable, and throw 532 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. 533 This is useful in cases where mandatory wrapping is added, which 534 is often done by Reflection API.</div> 535<dl><dt><span class="strong">Throws:</span></dt> 536<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> 537</li> 538</ul> 539<a name="throwAsIAE(java.lang.Throwable)"> 540<!-- --> 541</a> 542<ul class="blockList"> 543<li class="blockList"> 544<h4>throwAsIAE</h4> 545<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> 546<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 547 is a checked exception; otherwise (runtime exception or error) throw as is</div> 548</li> 549</ul> 550<a name="throwAsIAE(java.lang.Throwable, java.lang.String)"> 551<!-- --> 552</a> 553<ul class="blockList"> 554<li class="blockList"> 555<h4>throwAsIAE</h4> 556<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, 557 <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> 558<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 559 specified message) if it 560 is a checked exception; otherwise (runtime exception or error) throw as is</div> 561</li> 562</ul> 563<a name="unwrapAndThrowAsIAE(java.lang.Throwable)"> 564<!-- --> 565</a> 566<ul class="blockList"> 567<li class="blockList"> 568<h4>unwrapAndThrowAsIAE</h4> 569<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> 570<div class="block">Method that will locate the innermost exception for given Throwable; 571 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 572 is a checked exception; otherwise (runtime exception or error) throw as is</div> 573</li> 574</ul> 575<a name="unwrapAndThrowAsIAE(java.lang.Throwable, java.lang.String)"> 576<!-- --> 577</a> 578<ul class="blockList"> 579<li class="blockList"> 580<h4>unwrapAndThrowAsIAE</h4> 581<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, 582 <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> 583<div class="block">Method that will locate the innermost exception for given Throwable; 584 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 585 is a checked exception; otherwise (runtime exception or error) throw as is</div> 586</li> 587</ul> 588<a name="createInstance(java.lang.Class, boolean)"> 589<!-- --> 590</a> 591<ul class="blockList"> 592<li class="blockList"> 593<h4>createInstance</h4> 594<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, 595 boolean canFixAccess) 596 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> 597<div class="block">Method that can be called to try to create an instantiate of 598 specified type. Instantiation is done using default no-argument 599 constructor.</div> 600<dl><dt><span class="strong">Parameters:</span></dt><dd><code>canFixAccess</code> - Whether it is possible to try to change access 601 rights of the default constructor (in case it is not publicly 602 accessible) or not.</dd> 603<dt><span class="strong">Throws:</span></dt> 604<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; 605 except for cases where constructor throws an unchecked exception 606 (which will be passed as is)</dd></dl> 607</li> 608</ul> 609<a name="findConstructor(java.lang.Class, boolean)"> 610<!-- --> 611</a> 612<ul class="blockList"> 613<li class="blockList"> 614<h4>findConstructor</h4> 615<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, 616 boolean canFixAccess) 617 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> 618<dl><dt><span class="strong">Throws:</span></dt> 619<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> 620</li> 621</ul> 622<a name="defaultValue(java.lang.Class)"> 623<!-- --> 624</a> 625<ul class="blockList"> 626<li class="blockList"> 627<h4>defaultValue</h4> 628<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> 629<div class="block">Helper method used to get default value for wrappers used for primitive types 630 (0 for Integer etc)</div> 631</li> 632</ul> 633<a name="wrapperType(java.lang.Class)"> 634<!-- --> 635</a> 636<ul class="blockList"> 637<li class="blockList"> 638<h4>wrapperType</h4> 639<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> 640<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 641 there one in JDK?)</div> 642</li> 643</ul> 644<a name="checkAndFixAccess(java.lang.reflect.Member)"> 645<!-- --> 646</a> 647<ul class="blockList"> 648<li class="blockList"> 649<h4>checkAndFixAccess</h4> 650<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> 651<div class="block">Method called to check if we can use the passed method or constructor 652 (wrt access restriction -- public methods can be called, others 653 usually not); and if not, if there is a work-around for 654 the problem.</div> 655</li> 656</ul> 657<a name="findEnumType(java.util.EnumSet)"> 658<!-- --> 659</a> 660<ul class="blockList"> 661<li class="blockList"> 662<h4>findEnumType</h4> 663<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> 664<div class="block">Helper method that can be used to dynamically figure out 665 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 666 access to its declaration. 667 Code is needed to work around design flaw in JDK.</div> 668</li> 669</ul> 670<a name="findEnumType(java.util.EnumMap)"> 671<!-- --> 672</a> 673<ul class="blockList"> 674<li class="blockList"> 675<h4>findEnumType</h4> 676<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> 677<div class="block">Helper method that can be used to dynamically figure out 678 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 679 access to its declaration. 680 Code is needed to work around design flaw in JDK.</div> 681</li> 682</ul> 683<a name="findEnumType(java.lang.Enum)"> 684<!-- --> 685</a> 686<ul class="blockList"> 687<li class="blockList"> 688<h4>findEnumType</h4> 689<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> 690<div class="block">Helper method that can be used to dynamically figure out formal 691 enumeration type (class) for given enumeration. This is either 692 class of enum instance (for "simple" enumerations), or its 693 superclass (for enums with instance fields or methods)</div> 694</li> 695</ul> 696<a name="findEnumType(java.lang.Class)"> 697<!-- --> 698</a> 699<ul class="blockList"> 700<li class="blockList"> 701<h4>findEnumType</h4> 702<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> 703<div class="block">Helper method that can be used to dynamically figure out formal 704 enumeration type (class) for given class of an enumeration value. 705 This is either class of enum instance (for "simple" enumerations), 706 or its superclass (for enums with instance fields or methods)</div> 707</li> 708</ul> 709<a name="isJacksonStdImpl(java.lang.Object)"> 710<!-- --> 711</a> 712<ul class="blockList"> 713<li class="blockList"> 714<h4>isJacksonStdImpl</h4> 715<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> 716<div class="block">Method that can be called to determine if given Object is the default 717 implementation Jackson uses; as opposed to a custom serializer installed by 718 a module or calling application. Determination is done using 719 <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) 720 class.</div> 721</li> 722</ul> 723<a name="isJacksonStdImpl(java.lang.Class)"> 724<!-- --> 725</a> 726<ul class="blockList"> 727<li class="blockList"> 728<h4>isJacksonStdImpl</h4> 729<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> 730</li> 731</ul> 732<a name="isBogusClass(java.lang.Class)"> 733<!-- --> 734</a> 735<ul class="blockList"> 736<li class="blockList"> 737<h4>isBogusClass</h4> 738<pre>public static boolean isBogusClass(<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> 739</li> 740</ul> 741<a name="isNonStaticInnerClass(java.lang.Class)"> 742<!-- --> 743</a> 744<ul class="blockListLast"> 745<li class="blockList"> 746<h4>isNonStaticInnerClass</h4> 747<pre>public static boolean isNonStaticInnerClass(<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> 748</li> 749</ul> 750</li> 751</ul> 752</li> 753</ul> 754</div> 755</div> 756<!-- ========= END OF CLASS DATA ========= --> 757<!-- ======= START OF BOTTOM NAVBAR ====== --> 758<div class="bottomNav"><a name="navbar_bottom"> 759<!-- --> 760</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 761<!-- --> 762</a> 763<ul class="navList" title="Navigation"> 764<li><a href="../../../../../overview-summary.html">Overview</a></li> 765<li><a href="package-summary.html">Package</a></li> 766<li class="navBarCell1Rev">Class</li> 767<li><a href="class-use/ClassUtil.html">Use</a></li> 768<li><a href="package-tree.html">Tree</a></li> 769<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 770<li><a href="../../../../../index-all.html">Index</a></li> 771<li><a href="../../../../../help-doc.html">Help</a></li> 772</ul> 773</div> 774<div class="subNav"> 775<ul class="navList"> 776<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> 777<li><a href="../../../../../com/fasterxml/jackson/databind/util/ContainerBuilder.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 778</ul> 779<ul class="navList"> 780<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top">Frames</a></li> 781<li><a href="ClassUtil.html" target="_top">No Frames</a></li> 782</ul> 783<ul class="navList" id="allclasses_navbar_bottom"> 784<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 785</ul> 786<div> 787<script type="text/javascript"><!-- 788 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 789 if(window==top) { 790 allClassesLink.style.display = "block"; 791 } 792 else { 793 allClassesLink.style.display = "none"; 794 } 795 //--> 796</script> 797</div> 798<div> 799<ul class="subNavList"> 800<li>Summary: </li> 801<li>Nested | </li> 802<li>Field | </li> 803<li><a href="#constructor_summary">Constr</a> | </li> 804<li><a href="#method_summary">Method</a></li> 805</ul> 806<ul class="subNavList"> 807<li>Detail: </li> 808<li>Field | </li> 809<li><a href="#constructor_detail">Constr</a> | </li> 810<li><a href="#method_detail">Method</a></li> 811</ul> 812</div> 813<a name="skip-navbar_bottom"> 814<!-- --> 815</a></div> 816<!-- ======== END OF BOTTOM NAVBAR ======= --> 817<p class="legalCopy"><small>Copyright © 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 818</body> 819</html> 820