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