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_162) on Tue Mar 24 11:44:37 PDT 2020 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ClassUtil (jackson-databind 2.11.0.rc1 API)</title> 8<meta name="date" content="2020-03-24"> 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.11.0.rc1 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":9,"i1":9,"i2":41,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":41,"i22":41,"i23":9,"i24":9,"i25":9,"i26":9,"i27":41,"i28":41,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":41,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":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/ClassUtil.Ctor.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><a href="#nested.class.summary">Nested</a> | </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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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<!-- ======== NESTED CLASS SUMMARY ======== --> 122<ul class="blockList"> 123<li class="blockList"><a name="nested.class.summary"> 124<!-- --> 125</a> 126<h3>Nested Class Summary</h3> 127<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 128<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 129<tr> 130<th class="colFirst" scope="col">Modifier and Type</th> 131<th class="colLast" scope="col">Class and Description</th> 132</tr> 133<tr class="altColor"> 134<td class="colFirst"><code>static class </code></td> 135<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.Ctor.html" title="class in com.fasterxml.jackson.databind.util">ClassUtil.Ctor</a></span></code> 136<div class="block">Value class used for caching Constructor declarations; used because 137 caching done by JDK appears to be somewhat inefficient for some use cases.</div> 138</td> 139</tr> 140</table> 141</li> 142</ul> 143<!-- ======== CONSTRUCTOR SUMMARY ======== --> 144<ul class="blockList"> 145<li class="blockList"><a name="constructor.summary"> 146<!-- --> 147</a> 148<h3>Constructor Summary</h3> 149<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 150<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 151<tr> 152<th class="colOne" scope="col">Constructor and Description</th> 153</tr> 154<tr class="altColor"> 155<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#ClassUtil--">ClassUtil</a></span>()</code> </td> 156</tr> 157</table> 158</li> 159</ul> 160<!-- ========== METHOD SUMMARY =========== --> 161<ul class="blockList"> 162<li class="blockList"><a name="method.summary"> 163<!-- --> 164</a> 165<h3>Method Summary</h3> 166<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 167<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> 168<tr> 169<th class="colFirst" scope="col">Modifier and Type</th> 170<th class="colLast" scope="col">Method and Description</th> 171</tr> 172<tr id="i0" class="altColor"> 173<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 174<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#backticked-java.lang.String-">backticked</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</code> 175<div class="block">Returns either `text` or [null].</div> 176</td> 177</tr> 178<tr id="i1" class="rowColor"> 179<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 180<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> </td> 181</tr> 182<tr id="i2" class="altColor"> 183<td class="colFirst"><code>static void</code></td> 184<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="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member)</code> 185<div class="block"><span class="deprecatedLabel">Deprecated.</span> 186<div class="block"><span class="deprecationComment">Since 2.7 call variant that takes boolean flag.</span></div> 187</div> 188</td> 189</tr> 190<tr id="i3" class="rowColor"> 191<td class="colFirst"><code>static void</code></td> 192<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#checkAndFixAccess-java.lang.reflect.Member-boolean-">checkAndFixAccess</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member, 193 boolean force)</code> 194<div class="block">Method that is called if a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect"><code>Member</code></a> may need forced access, 195 to force a field, method or constructor to be accessible: this 196 is done by calling <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/AccessibleObject.html?is-external=true#setAccessible-boolean-" title="class or interface in java.lang.reflect"><code>AccessibleObject.setAccessible(boolean)</code></a>.</div> 197</td> 198</tr> 199<tr id="i4" class="altColor"> 200<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 201<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#classNameOf-java.lang.Object-">classNameOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst)</code> 202<div class="block">Helper method used to construct appropriate description 203 when passed either type (Class) or an instance; in latter 204 case, class of instance is to be used.</div> 205</td> 206</tr> 207<tr id="i5" class="rowColor"> 208<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 209<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#classOf-java.lang.Object-">classOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst)</code> </td> 210</tr> 211<tr id="i6" class="altColor"> 212<td class="colFirst"><code>static void</code></td> 213<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#closeOnFailAndThrowAsIOE-com.fasterxml.jackson.core.JsonGenerator-java.io.Closeable-java.lang.Exception-">closeOnFailAndThrowAsIOE</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 214 <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a> toClose, 215 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> fail)</code> 216<div class="block">Helper method that encapsulate logic in trying to close given <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><code>Closeable</code></a> 217 in case of failure; useful mostly in forcing flush()ing as otherwise 218 error conditions tend to be hard to diagnose.</div> 219</td> 220</tr> 221<tr id="i7" class="rowColor"> 222<td class="colFirst"><code>static void</code></td> 223<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#closeOnFailAndThrowAsIOE-com.fasterxml.jackson.core.JsonGenerator-java.lang.Exception-">closeOnFailAndThrowAsIOE</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 224 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> fail)</code> 225<div class="block">Helper method that encapsulate logic in trying to close output generator 226 in case of failure; useful mostly in forcing flush()ing as otherwise 227 error conditions tend to be hard to diagnose.</div> 228</td> 229</tr> 230<tr id="i8" class="altColor"> 231<td class="colFirst"><code>static <T> T</code></td> 232<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> cls, 233 boolean canFixAccess)</code> 234<div class="block">Method that can be called to try to create an instantiate of 235 specified type.</div> 236</td> 237</tr> 238<tr id="i9" class="rowColor"> 239<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 240<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 241<div class="block">Helper method used to get default value for wrappers used for primitive types 242 (0 for Integer etc)</div> 243</td> 244</tr> 245<tr id="i10" class="altColor"> 246<td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T></code></td> 247<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#emptyIterator--">emptyIterator</a></span>()</code> </td> 248</tr> 249<tr id="i11" class="rowColor"> 250<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 251<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#exceptionMessage-java.lang.Throwable-">exceptionMessage</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 252<div class="block">Helper method that returns <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true#getMessage--" title="class or interface in java.lang"><code>Throwable.getMessage()</code></a> for all other exceptions 253 except for <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonProcessingException</code></a>, for which <code>getOriginalMessage()</code> is 254 returned instead.</div> 255</td> 256</tr> 257<tr id="i12" class="altColor"> 258<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[]</code></td> 259<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findClassAnnotations-java.lang.Class-">findClassAnnotations</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 260</tr> 261<tr id="i13" class="rowColor"> 262<td class="colFirst"><code>static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T></code></td> 263<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> cls, 264 boolean forceAccess)</code> </td> 265</tr> 266<tr id="i14" class="altColor"> 267<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 268<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 269<div class="block">Helper method that can be used to dynamically figure out formal 270 enumeration type (class) for given class of an enumeration value.</div> 271</td> 272</tr> 273<tr id="i15" class="rowColor"> 274<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 275<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> en)</code> 276<div class="block">Helper method that can be used to dynamically figure out formal 277 enumeration type (class) for given enumeration.</div> 278</td> 279</tr> 280<tr id="i16" class="altColor"> 281<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 282<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="https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html?is-external=true" title="class or interface in java.util">EnumMap</a><?,?> m)</code> 283<div class="block">Helper method that can be used to dynamically figure out 284 enumeration type of given <a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><code>EnumSet</code></a>, without having 285 access to its declaration.</div> 286</td> 287</tr> 288<tr id="i17" class="rowColor"> 289<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 290<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="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</a><?> s)</code> 291<div class="block">Helper method that can be used to dynamically figure out 292 enumeration type of given <a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><code>EnumSet</code></a>, without having 293 access to its declaration.</div> 294</td> 295</tr> 296<tr id="i18" class="altColor"> 297<td class="colFirst"><code>static <T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>><br><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 298<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findFirstAnnotatedEnumValue-java.lang.Class-java.lang.Class-">findFirstAnnotatedEnumValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 299 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> annotationClass)</code> 300<div class="block">A method that will look for the first Enum value annotated with the given Annotation.</div> 301</td> 302</tr> 303<tr id="i19" class="rowColor"> 304<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>></code></td> 305<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findRawSuperTypes-java.lang.Class-java.lang.Class-boolean-">findRawSuperTypes</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 306 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 307 boolean addClassItself)</code> </td> 308</tr> 309<tr id="i20" class="altColor"> 310<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>></code></td> 311<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperClasses-java.lang.Class-java.lang.Class-boolean-">findSuperClasses</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 312 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 313 boolean addClassItself)</code> 314<div class="block">Method for finding all super classes (but not super interfaces) of given class, 315 starting with the immediate super class and ending in the most distant one.</div> 316</td> 317</tr> 318<tr id="i21" class="rowColor"> 319<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>></code></td> 320<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 321 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore)</code> 322<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> 323</td> 324</tr> 325<tr id="i22" class="altColor"> 326<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>></code></td> 327<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 328 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 329 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> result)</code> 330<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> 331</td> 332</tr> 333<tr id="i23" class="rowColor"> 334<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>></code></td> 335<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#findSuperTypes-com.fasterxml.jackson.databind.JavaType-java.lang.Class-boolean-">findSuperTypes</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 336 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 337 boolean addClassItself)</code> 338<div class="block">Method that will find all sub-classes and implemented interfaces 339 of a given class or interface.</div> 340</td> 341</tr> 342<tr id="i24" class="altColor"> 343<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 344<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> classOrInstance)</code> 345<div class="block">Helper method used to construct appropriate description 346 when passed either type (Class) or an instance; in latter 347 case, class of instance is to be used.</div> 348</td> 349</tr> 350<tr id="i25" class="rowColor"> 351<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[]</code></td> 352<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getClassMethods-java.lang.Class-">getClassMethods</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 353<div class="block">Helper method that gets methods declared in given class; usually a simple thing, 354 but sometimes (as per [databind#785]) more complicated, depending on classloader 355 setup.</div> 356</td> 357</tr> 358<tr id="i26" class="altColor"> 359<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.Ctor.html" title="class in com.fasterxml.jackson.databind.util">ClassUtil.Ctor</a>[]</code></td> 360<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getConstructors-java.lang.Class-">getConstructors</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 361</tr> 362<tr id="i27" class="rowColor"> 363<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[]</code></td> 364<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getDeclaredFields-java.lang.Class-">getDeclaredFields</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 365<div class="block"><span class="deprecatedLabel">Deprecated.</span> 366<div class="block"><span class="deprecationComment">since 2.11 (just call Class method directly)</span></div> 367</div> 368</td> 369</tr> 370<tr id="i28" class="altColor"> 371<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[]</code></td> 372<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getDeclaredMethods-java.lang.Class-">getDeclaredMethods</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 373<div class="block"><span class="deprecatedLabel">Deprecated.</span> 374<div class="block"><span class="deprecationComment">since 2.11 (just call Class method directly)</span></div> 375</div> 376</td> 377</tr> 378<tr id="i29" class="rowColor"> 379<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 380<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getDeclaringClass-java.lang.Class-">getDeclaringClass</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 381</tr> 382<tr id="i30" class="altColor"> 383<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 384<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getEnclosingClass-java.lang.Class-">getEnclosingClass</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 385</tr> 386<tr id="i31" class="rowColor"> 387<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>[]</code></td> 388<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getGenericInterfaces-java.lang.Class-">getGenericInterfaces</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 389</tr> 390<tr id="i32" class="altColor"> 391<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a></code></td> 392<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getGenericSuperclass-java.lang.Class-">getGenericSuperclass</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 393</tr> 394<tr id="i33" class="rowColor"> 395<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 396<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 397<div class="block">Method for finding enclosing class for non-static inner classes</div> 398</td> 399</tr> 400<tr id="i34" class="altColor"> 401<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 402<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getPackageName-java.lang.Class-">getPackageName</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 403</tr> 404<tr id="i35" class="rowColor"> 405<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> 406<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 407<div class="block">Method that can be used to find the "root cause", innermost 408 of chained (wrapped) exceptions.</div> 409</td> 410</tr> 411<tr id="i36" class="altColor"> 412<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 413<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getTypeDescription-com.fasterxml.jackson.databind.JavaType-">getTypeDescription</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> fullType)</code> 414<div class="block">Helper method to create and return "backticked" description of given 415 resolved type (or, <code>"null"</code> if <code>null</code> passed), similar 416 to return vaue of <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getClassDescription-java.lang.Object-"><code>getClassDescription(Object)</code></a>.</div> 417</td> 418</tr> 419<tr id="i37" class="rowColor"> 420<td class="colFirst"><code>static boolean</code></td> 421<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#hasClass-java.lang.Object-java.lang.Class-">hasClass</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst, 422 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> raw)</code> </td> 423</tr> 424<tr id="i38" class="altColor"> 425<td class="colFirst"><code>static boolean</code></td> 426<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#hasEnclosingMethod-java.lang.Class-">hasEnclosingMethod</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 427</tr> 428<tr id="i39" class="rowColor"> 429<td class="colFirst"><code>static boolean</code></td> 430<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="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> m)</code> 431<div class="block"><span class="deprecatedLabel">Deprecated.</span> 432<div class="block"><span class="deprecationComment">Since 2.6 not used; may be removed before 3.x</span></div> 433</div> 434</td> 435</tr> 436<tr id="i40" class="altColor"> 437<td class="colFirst"><code>static boolean</code></td> 438<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 439</tr> 440<tr id="i41" class="rowColor"> 441<td class="colFirst"><code>static boolean</code></td> 442<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> </td> 443</tr> 444<tr id="i42" class="altColor"> 445<td class="colFirst"><code>static boolean</code></td> 446<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 447<div class="block">Helper method that checks if given class is a concrete one; 448 that is, not an interface or abstract class.</div> 449</td> 450</tr> 451<tr id="i43" class="rowColor"> 452<td class="colFirst"><code>static boolean</code></td> 453<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="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member)</code> </td> 454</tr> 455<tr id="i44" class="altColor"> 456<td class="colFirst"><code>static boolean</code></td> 457<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isEnumType-java.lang.Class-">isEnumType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawType)</code> 458<div class="block">Helper method that encapsulates reliable check on whether 459 given raw type "is an Enum", that is, is or extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><code>Enum</code></a>.</div> 460</td> 461</tr> 462<tr id="i45" class="rowColor"> 463<td class="colFirst"><code>static boolean</code></td> 464<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> implClass)</code> </td> 465</tr> 466<tr id="i46" class="altColor"> 467<td class="colFirst"><code>static boolean</code></td> 468<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> impl)</code> 469<div class="block">Method that can be called to determine if given Object is the default 470 implementation Jackson uses; as opposed to a custom serializer installed by 471 a module or calling application.</div> 472</td> 473</tr> 474<tr id="i47" class="rowColor"> 475<td class="colFirst"><code>static boolean</code></td> 476<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isJDKClass-java.lang.Class-">isJDKClass</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawType)</code> 477<div class="block">Some aspects of handling need to be changed for JDK types (and possibly 478 some extensions under <code>javax.</code>?): for example, forcing of access 479 will not work well for future JDKs (12 and later).</div> 480</td> 481</tr> 482<tr id="i48" class="altColor"> 483<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 484<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 485 boolean allowNonStatic)</code> </td> 486</tr> 487<tr id="i49" class="rowColor"> 488<td class="colFirst"><code>static boolean</code></td> 489<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 490</tr> 491<tr id="i50" class="altColor"> 492<td class="colFirst"><code>static boolean</code></td> 493<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#isObjectOrPrimitive-java.lang.Class-">isObjectOrPrimitive</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> </td> 494</tr> 495<tr id="i51" class="rowColor"> 496<td class="colFirst"><code>static boolean</code></td> 497<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 498<div class="block">Helper method used to weed out dynamic Proxy types; types that do 499 not expose concrete method API that we could use to figure out 500 automatic Bean (property) based serialization.</div> 501</td> 502</tr> 503<tr id="i52" class="altColor"> 504<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 505<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#nameOf-java.lang.Class-">nameOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</code> 506<div class="block">Returns either `cls.getName()` (if `cls` not null), 507 or "[null]" if `cls` is null.</div> 508</td> 509</tr> 510<tr id="i53" class="rowColor"> 511<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 512<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#nameOf-com.fasterxml.jackson.databind.util.Named-">nameOf</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/util/Named.html" title="interface in com.fasterxml.jackson.databind.util">Named</a> named)</code> 513<div class="block">Returns either backtick-quoted `named.getName()` (if `named` not null), 514 or "[null]" if `named` is null.</div> 515</td> 516</tr> 517<tr id="i54" class="altColor"> 518<td class="colFirst"><code>static <T> T</code></td> 519<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#nonNull-T-T-">nonNull</a></span>(T valueOrNull, 520 T defaultValue)</code> </td> 521</tr> 522<tr id="i55" class="rowColor"> 523<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 524<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#nonNullString-java.lang.String-">nonNullString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str)</code> </td> 525</tr> 526<tr id="i56" class="altColor"> 527<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 528<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#nullOrToString-java.lang.Object-">nullOrToString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> </td> 529</tr> 530<tr id="i57" class="rowColor"> 531<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 532<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#primitiveType-java.lang.Class-">primitiveType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</code> 533<div class="block">Method that can be used to find primitive type for given class if (but only if) 534 it is either wrapper type or primitive type; returns `null` if type is neither.</div> 535</td> 536</tr> 537<tr id="i58" class="altColor"> 538<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 539<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#quotedOr-java.lang.Object-java.lang.String-">quotedOr</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> str, 540 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> forNull)</code> 541<div class="block">Returns either quoted value (with double-quotes) -- if argument non-null 542 String -- or String NULL (no quotes) (if null).</div> 543</td> 544</tr> 545<tr id="i59" class="rowColor"> 546<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 547<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#rawClass-com.fasterxml.jackson.databind.JavaType-">rawClass</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> t)</code> </td> 548</tr> 549<tr id="i60" class="altColor"> 550<td class="colFirst"><code>static void</code></td> 551<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 552<div class="block">Method that will wrap 't' as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 553 is a checked exception; otherwise (runtime exception or error) throw as is</div> 554</td> 555</tr> 556<tr id="i61" class="rowColor"> 557<td class="colFirst"><code>static void</code></td> 558<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t, 559 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</code> 560<div class="block">Method that will wrap 't' as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> (and with 561 specified message) if it 562 is a checked exception; otherwise (runtime exception or error) throw as is</div> 563</td> 564</tr> 565<tr id="i62" class="altColor"> 566<td class="colFirst"><code>static <T> T</code></td> 567<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwAsMappingException-com.fasterxml.jackson.databind.DeserializationContext-java.io.IOException-">throwAsMappingException</a></span>(<a href="../../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 568 <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a> e0)</code> </td> 569</tr> 570<tr id="i63" class="rowColor"> 571<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> 572<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwIfError-java.lang.Throwable-">throwIfError</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 573<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><code>Error</code></a>, 574 and if so, (re)throw it; otherwise just return</div> 575</td> 576</tr> 577<tr id="i64" class="altColor"> 578<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> 579<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwIfIOE-java.lang.Throwable-">throwIfIOE</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 580<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>, 581 and if so, (re)throw it; otherwise just return</div> 582</td> 583</tr> 584<tr id="i65" class="rowColor"> 585<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> 586<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwIfRTE-java.lang.Throwable-">throwIfRTE</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 587<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang"><code>RuntimeException</code></a>, 588 and if so, (re)throw it; otherwise just return</div> 589</td> 590</tr> 591<tr id="i66" class="altColor"> 592<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a></code></td> 593<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#throwRootCauseIfIOE-java.lang.Throwable-">throwRootCauseIfIOE</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 594<div class="block">Method that works like by calling <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getRootCause-java.lang.Throwable-"><code>getRootCause(java.lang.Throwable)</code></a> and then 595 either throwing it (if instanceof <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>), or 596 return.</div> 597</td> 598</tr> 599<tr id="i67" class="rowColor"> 600<td class="colFirst"><code>static void</code></td> 601<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</code> 602<div class="block">Method that will locate the innermost exception for given Throwable; 603 and then wrap it as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 604 is a checked exception; otherwise (runtime exception or error) throw as is</div> 605</td> 606</tr> 607<tr id="i68" class="altColor"> 608<td class="colFirst"><code>static void</code></td> 609<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t, 610 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</code> 611<div class="block">Method that will locate the innermost exception for given Throwable; 612 and then wrap it as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 613 is a checked exception; otherwise (runtime exception or error) throw as is</div> 614</td> 615</tr> 616<tr id="i69" class="rowColor"> 617<td class="colFirst"><code>static void</code></td> 618<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#verifyMustOverride-java.lang.Class-java.lang.Object-java.lang.String-">verifyMustOverride</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> expType, 619 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> instance, 620 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> method)</code> </td> 621</tr> 622<tr id="i70" class="altColor"> 623<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 624<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="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> primitiveType)</code> 625<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 626 there one in JDK?)</div> 627</td> 628</tr> 629</table> 630<ul class="blockList"> 631<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 632<!-- --> 633</a> 634<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 635<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 636</ul> 637</li> 638</ul> 639</li> 640</ul> 641</div> 642<div class="details"> 643<ul class="blockList"> 644<li class="blockList"> 645<!-- ========= CONSTRUCTOR DETAIL ======== --> 646<ul class="blockList"> 647<li class="blockList"><a name="constructor.detail"> 648<!-- --> 649</a> 650<h3>Constructor Detail</h3> 651<a name="ClassUtil--"> 652<!-- --> 653</a> 654<ul class="blockListLast"> 655<li class="blockList"> 656<h4>ClassUtil</h4> 657<pre>public ClassUtil()</pre> 658</li> 659</ul> 660</li> 661</ul> 662<!-- ============ METHOD DETAIL ========== --> 663<ul class="blockList"> 664<li class="blockList"><a name="method.detail"> 665<!-- --> 666</a> 667<h3>Method Detail</h3> 668<a name="emptyIterator--"> 669<!-- --> 670</a> 671<ul class="blockList"> 672<li class="blockList"> 673<h4>emptyIterator</h4> 674<pre>public static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><T> emptyIterator()</pre> 675<dl> 676<dt><span class="simpleTagLabel">Since:</span></dt> 677<dd>2.7</dd> 678</dl> 679</li> 680</ul> 681<a name="findSuperTypes-com.fasterxml.jackson.databind.JavaType-java.lang.Class-boolean-"> 682<!-- --> 683</a> 684<ul class="blockList"> 685<li class="blockList"> 686<h4>findSuperTypes</h4> 687<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>> findSuperTypes(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 688 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 689 boolean addClassItself)</pre> 690<div class="block">Method that will find all sub-classes and implemented interfaces 691 of a given class or interface. Classes are listed in order of 692 precedence, starting with the immediate super-class, followed by 693 interfaces class directly declares to implemented, and then recursively 694 followed by parent of super-class and so forth. 695 Note that <code>Object.class</code> is not included in the list 696 regardless of whether <code>endBefore</code> argument is defined or not.</div> 697<dl> 698<dt><span class="paramLabel">Parameters:</span></dt> 699<dd><code>endBefore</code> - Super-type to NOT include in results, if any; when 700 encountered, will be ignored (and no super types are checked).</dd> 701<dt><span class="simpleTagLabel">Since:</span></dt> 702<dd>2.7</dd> 703</dl> 704</li> 705</ul> 706<a name="findRawSuperTypes-java.lang.Class-java.lang.Class-boolean-"> 707<!-- --> 708</a> 709<ul class="blockList"> 710<li class="blockList"> 711<h4>findRawSuperTypes</h4> 712<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> findRawSuperTypes(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 713 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 714 boolean addClassItself)</pre> 715<dl> 716<dt><span class="simpleTagLabel">Since:</span></dt> 717<dd>2.7</dd> 718</dl> 719</li> 720</ul> 721<a name="findSuperClasses-java.lang.Class-java.lang.Class-boolean-"> 722<!-- --> 723</a> 724<ul class="blockList"> 725<li class="blockList"> 726<h4>findSuperClasses</h4> 727<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> findSuperClasses(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 728 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 729 boolean addClassItself)</pre> 730<div class="block">Method for finding all super classes (but not super interfaces) of given class, 731 starting with the immediate super class and ending in the most distant one. 732 Class itself is included if <code>addClassItself</code> is true. 733<p> 734 NOTE: mostly/only called to resolve mix-ins as that's where we do not care 735 about fully-resolved types, just associated annotations.</div> 736<dl> 737<dt><span class="simpleTagLabel">Since:</span></dt> 738<dd>2.7</dd> 739</dl> 740</li> 741</ul> 742<a name="findSuperTypes-java.lang.Class-java.lang.Class-"> 743<!-- --> 744</a> 745<ul class="blockList"> 746<li class="blockList"> 747<h4>findSuperTypes</h4> 748<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 749public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> findSuperTypes(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 750 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore)</pre> 751<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> 752</li> 753</ul> 754<a name="findSuperTypes-java.lang.Class-java.lang.Class-java.util.List-"> 755<!-- --> 756</a> 757<ul class="blockList"> 758<li class="blockList"> 759<h4>findSuperTypes</h4> 760<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 761public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> findSuperTypes(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls, 762 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> endBefore, 763 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>> result)</pre> 764<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> 765</li> 766</ul> 767<a name="canBeABeanType-java.lang.Class-"> 768<!-- --> 769</a> 770<ul class="blockList"> 771<li class="blockList"> 772<h4>canBeABeanType</h4> 773<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> canBeABeanType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 774<dl> 775<dt><span class="returnLabel">Returns:</span></dt> 776<dd>Null if class might be a bean; type String (that identifies 777 why it's not a bean) if not</dd> 778</dl> 779</li> 780</ul> 781<a name="isLocalType-java.lang.Class-boolean-"> 782<!-- --> 783</a> 784<ul class="blockList"> 785<li class="blockList"> 786<h4>isLocalType</h4> 787<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> isLocalType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type, 788 boolean allowNonStatic)</pre> 789</li> 790</ul> 791<a name="getOuterClass-java.lang.Class-"> 792<!-- --> 793</a> 794<ul class="blockList"> 795<li class="blockList"> 796<h4>getOuterClass</h4> 797<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> getOuterClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 798<div class="block">Method for finding enclosing class for non-static inner classes</div> 799</li> 800</ul> 801<a name="isProxyType-java.lang.Class-"> 802<!-- --> 803</a> 804<ul class="blockList"> 805<li class="blockList"> 806<h4>isProxyType</h4> 807<pre>public static boolean isProxyType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 808<div class="block">Helper method used to weed out dynamic Proxy types; types that do 809 not expose concrete method API that we could use to figure out 810 automatic Bean (property) based serialization.</div> 811</li> 812</ul> 813<a name="isConcrete-java.lang.Class-"> 814<!-- --> 815</a> 816<ul class="blockList"> 817<li class="blockList"> 818<h4>isConcrete</h4> 819<pre>public static boolean isConcrete(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 820<div class="block">Helper method that checks if given class is a concrete one; 821 that is, not an interface or abstract class.</div> 822</li> 823</ul> 824<a name="isConcrete-java.lang.reflect.Member-"> 825<!-- --> 826</a> 827<ul class="blockList"> 828<li class="blockList"> 829<h4>isConcrete</h4> 830<pre>public static boolean isConcrete(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member)</pre> 831</li> 832</ul> 833<a name="isCollectionMapOrArray-java.lang.Class-"> 834<!-- --> 835</a> 836<ul class="blockList"> 837<li class="blockList"> 838<h4>isCollectionMapOrArray</h4> 839<pre>public static boolean isCollectionMapOrArray(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 840</li> 841</ul> 842<a name="isBogusClass-java.lang.Class-"> 843<!-- --> 844</a> 845<ul class="blockList"> 846<li class="blockList"> 847<h4>isBogusClass</h4> 848<pre>public static boolean isBogusClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 849</li> 850</ul> 851<a name="isObjectOrPrimitive-java.lang.Class-"> 852<!-- --> 853</a> 854<ul class="blockList"> 855<li class="blockList"> 856<h4>isObjectOrPrimitive</h4> 857<pre>public static boolean isObjectOrPrimitive(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 858<dl> 859<dt><span class="simpleTagLabel">Since:</span></dt> 860<dd>2.7</dd> 861</dl> 862</li> 863</ul> 864<a name="hasClass-java.lang.Object-java.lang.Class-"> 865<!-- --> 866</a> 867<ul class="blockList"> 868<li class="blockList"> 869<h4>hasClass</h4> 870<pre>public static boolean hasClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst, 871 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> raw)</pre> 872<dl> 873<dt><span class="simpleTagLabel">Since:</span></dt> 874<dd>2.9</dd> 875</dl> 876</li> 877</ul> 878<a name="verifyMustOverride-java.lang.Class-java.lang.Object-java.lang.String-"> 879<!-- --> 880</a> 881<ul class="blockList"> 882<li class="blockList"> 883<h4>verifyMustOverride</h4> 884<pre>public static void verifyMustOverride(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> expType, 885 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> instance, 886 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> method)</pre> 887<dl> 888<dt><span class="simpleTagLabel">Since:</span></dt> 889<dd>2.9</dd> 890</dl> 891</li> 892</ul> 893<a name="hasGetterSignature-java.lang.reflect.Method-"> 894<!-- --> 895</a> 896<ul class="blockList"> 897<li class="blockList"> 898<h4>hasGetterSignature</h4> 899<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 900public static boolean hasGetterSignature(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> m)</pre> 901<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.6 not used; may be removed before 3.x</span></div> 902</li> 903</ul> 904<a name="throwIfError-java.lang.Throwable-"> 905<!-- --> 906</a> 907<ul class="blockList"> 908<li class="blockList"> 909<h4>throwIfError</h4> 910<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwIfError(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 911<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><code>Error</code></a>, 912 and if so, (re)throw it; otherwise just return</div> 913<dl> 914<dt><span class="simpleTagLabel">Since:</span></dt> 915<dd>2.9</dd> 916</dl> 917</li> 918</ul> 919<a name="throwIfRTE-java.lang.Throwable-"> 920<!-- --> 921</a> 922<ul class="blockList"> 923<li class="blockList"> 924<h4>throwIfRTE</h4> 925<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwIfRTE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 926<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang"><code>RuntimeException</code></a>, 927 and if so, (re)throw it; otherwise just return</div> 928<dl> 929<dt><span class="simpleTagLabel">Since:</span></dt> 930<dd>2.9</dd> 931</dl> 932</li> 933</ul> 934<a name="throwIfIOE-java.lang.Throwable-"> 935<!-- --> 936</a> 937<ul class="blockList"> 938<li class="blockList"> 939<h4>throwIfIOE</h4> 940<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwIfIOE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) 941 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 942<div class="block">Helper method that will check if argument is an <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>, 943 and if so, (re)throw it; otherwise just return</div> 944<dl> 945<dt><span class="throwsLabel">Throws:</span></dt> 946<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 947<dt><span class="simpleTagLabel">Since:</span></dt> 948<dd>2.9</dd> 949</dl> 950</li> 951</ul> 952<a name="getRootCause-java.lang.Throwable-"> 953<!-- --> 954</a> 955<ul class="blockList"> 956<li class="blockList"> 957<h4>getRootCause</h4> 958<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> getRootCause(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 959<div class="block">Method that can be used to find the "root cause", innermost 960 of chained (wrapped) exceptions.</div> 961</li> 962</ul> 963<a name="throwRootCauseIfIOE-java.lang.Throwable-"> 964<!-- --> 965</a> 966<ul class="blockList"> 967<li class="blockList"> 968<h4>throwRootCauseIfIOE</h4> 969<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> throwRootCauseIfIOE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t) 970 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 971<div class="block">Method that works like by calling <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getRootCause-java.lang.Throwable-"><code>getRootCause(java.lang.Throwable)</code></a> and then 972 either throwing it (if instanceof <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>), or 973 return.</div> 974<dl> 975<dt><span class="throwsLabel">Throws:</span></dt> 976<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 977<dt><span class="simpleTagLabel">Since:</span></dt> 978<dd>2.8</dd> 979</dl> 980</li> 981</ul> 982<a name="throwAsIAE-java.lang.Throwable-"> 983<!-- --> 984</a> 985<ul class="blockList"> 986<li class="blockList"> 987<h4>throwAsIAE</h4> 988<pre>public static void throwAsIAE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 989<div class="block">Method that will wrap 't' as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 990 is a checked exception; otherwise (runtime exception or error) throw as is</div> 991</li> 992</ul> 993<a name="throwAsIAE-java.lang.Throwable-java.lang.String-"> 994<!-- --> 995</a> 996<ul class="blockList"> 997<li class="blockList"> 998<h4>throwAsIAE</h4> 999<pre>public static void throwAsIAE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t, 1000 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> 1001<div class="block">Method that will wrap 't' as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> (and with 1002 specified message) if it 1003 is a checked exception; otherwise (runtime exception or error) throw as is</div> 1004</li> 1005</ul> 1006<a name="throwAsMappingException-com.fasterxml.jackson.databind.DeserializationContext-java.io.IOException-"> 1007<!-- --> 1008</a> 1009<ul class="blockList"> 1010<li class="blockList"> 1011<h4>throwAsMappingException</h4> 1012<pre>public static <T> T throwAsMappingException(<a href="../../../../../com/fasterxml/jackson/databind/DeserializationContext.html" title="class in com.fasterxml.jackson.databind">DeserializationContext</a> ctxt, 1013 <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a> e0) 1014 throws <a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></pre> 1015<dl> 1016<dt><span class="throwsLabel">Throws:</span></dt> 1017<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind">JsonMappingException</a></code></dd> 1018<dt><span class="simpleTagLabel">Since:</span></dt> 1019<dd>2.9</dd> 1020</dl> 1021</li> 1022</ul> 1023<a name="unwrapAndThrowAsIAE-java.lang.Throwable-"> 1024<!-- --> 1025</a> 1026<ul class="blockList"> 1027<li class="blockList"> 1028<h4>unwrapAndThrowAsIAE</h4> 1029<pre>public static void unwrapAndThrowAsIAE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 1030<div class="block">Method that will locate the innermost exception for given Throwable; 1031 and then wrap it as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 1032 is a checked exception; otherwise (runtime exception or error) throw as is</div> 1033</li> 1034</ul> 1035<a name="unwrapAndThrowAsIAE-java.lang.Throwable-java.lang.String-"> 1036<!-- --> 1037</a> 1038<ul class="blockList"> 1039<li class="blockList"> 1040<h4>unwrapAndThrowAsIAE</h4> 1041<pre>public static void unwrapAndThrowAsIAE(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t, 1042 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msg)</pre> 1043<div class="block">Method that will locate the innermost exception for given Throwable; 1044 and then wrap it as an <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> if it 1045 is a checked exception; otherwise (runtime exception or error) throw as is</div> 1046</li> 1047</ul> 1048<a name="closeOnFailAndThrowAsIOE-com.fasterxml.jackson.core.JsonGenerator-java.lang.Exception-"> 1049<!-- --> 1050</a> 1051<ul class="blockList"> 1052<li class="blockList"> 1053<h4>closeOnFailAndThrowAsIOE</h4> 1054<pre>public static void closeOnFailAndThrowAsIOE(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 1055 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> fail) 1056 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 1057<div class="block">Helper method that encapsulate logic in trying to close output generator 1058 in case of failure; useful mostly in forcing flush()ing as otherwise 1059 error conditions tend to be hard to diagnose. However, it is often the 1060 case that output state may be corrupt so we need to be prepared for 1061 secondary exception without masking original one.</div> 1062<dl> 1063<dt><span class="throwsLabel">Throws:</span></dt> 1064<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1065<dt><span class="simpleTagLabel">Since:</span></dt> 1066<dd>2.8</dd> 1067</dl> 1068</li> 1069</ul> 1070<a name="closeOnFailAndThrowAsIOE-com.fasterxml.jackson.core.JsonGenerator-java.io.Closeable-java.lang.Exception-"> 1071<!-- --> 1072</a> 1073<ul class="blockList"> 1074<li class="blockList"> 1075<h4>closeOnFailAndThrowAsIOE</h4> 1076<pre>public static void closeOnFailAndThrowAsIOE(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> g, 1077 <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io">Closeable</a> toClose, 1078 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a> fail) 1079 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 1080<div class="block">Helper method that encapsulate logic in trying to close given <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><code>Closeable</code></a> 1081 in case of failure; useful mostly in forcing flush()ing as otherwise 1082 error conditions tend to be hard to diagnose. However, it is often the 1083 case that output state may be corrupt so we need to be prepared for 1084 secondary exception without masking original one.</div> 1085<dl> 1086<dt><span class="throwsLabel">Throws:</span></dt> 1087<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 1088<dt><span class="simpleTagLabel">Since:</span></dt> 1089<dd>2.8</dd> 1090</dl> 1091</li> 1092</ul> 1093<a name="createInstance-java.lang.Class-boolean-"> 1094<!-- --> 1095</a> 1096<ul class="blockList"> 1097<li class="blockList"> 1098<h4>createInstance</h4> 1099<pre>public static <T> T createInstance(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> cls, 1100 boolean canFixAccess) 1101 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1102<div class="block">Method that can be called to try to create an instantiate of 1103 specified type. Instantiation is done using default no-argument 1104 constructor.</div> 1105<dl> 1106<dt><span class="paramLabel">Parameters:</span></dt> 1107<dd><code>canFixAccess</code> - Whether it is possible to try to change access 1108 rights of the default constructor (in case it is not publicly 1109 accessible) or not.</dd> 1110<dt><span class="throwsLabel">Throws:</span></dt> 1111<dd><code><a href="https://docs.oracle.com/javase/8/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; 1112 except for cases where constructor throws an unchecked exception 1113 (which will be passed as is)</dd> 1114</dl> 1115</li> 1116</ul> 1117<a name="findConstructor-java.lang.Class-boolean-"> 1118<!-- --> 1119</a> 1120<ul class="blockList"> 1121<li class="blockList"> 1122<h4>findConstructor</h4> 1123<pre>public static <T> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><T> findConstructor(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> cls, 1124 boolean forceAccess) 1125 throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> 1126<dl> 1127<dt><span class="throwsLabel">Throws:</span></dt> 1128<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code></dd> 1129</dl> 1130</li> 1131</ul> 1132<a name="classOf-java.lang.Object-"> 1133<!-- --> 1134</a> 1135<ul class="blockList"> 1136<li class="blockList"> 1137<h4>classOf</h4> 1138<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> classOf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst)</pre> 1139<dl> 1140<dt><span class="simpleTagLabel">Since:</span></dt> 1141<dd>2.9</dd> 1142</dl> 1143</li> 1144</ul> 1145<a name="rawClass-com.fasterxml.jackson.databind.JavaType-"> 1146<!-- --> 1147</a> 1148<ul class="blockList"> 1149<li class="blockList"> 1150<h4>rawClass</h4> 1151<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawClass(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> t)</pre> 1152<dl> 1153<dt><span class="simpleTagLabel">Since:</span></dt> 1154<dd>2.9</dd> 1155</dl> 1156</li> 1157</ul> 1158<a name="nonNull-java.lang.Object-java.lang.Object-"> 1159<!-- --> 1160</a><a name="nonNull-T-T-"> 1161<!-- --> 1162</a> 1163<ul class="blockList"> 1164<li class="blockList"> 1165<h4>nonNull</h4> 1166<pre>public static <T> T nonNull(T valueOrNull, 1167 T defaultValue)</pre> 1168<dl> 1169<dt><span class="simpleTagLabel">Since:</span></dt> 1170<dd>2.9</dd> 1171</dl> 1172</li> 1173</ul> 1174<a name="nullOrToString-java.lang.Object-"> 1175<!-- --> 1176</a> 1177<ul class="blockList"> 1178<li class="blockList"> 1179<h4>nullOrToString</h4> 1180<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nullOrToString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre> 1181<dl> 1182<dt><span class="simpleTagLabel">Since:</span></dt> 1183<dd>2.9</dd> 1184</dl> 1185</li> 1186</ul> 1187<a name="nonNullString-java.lang.String-"> 1188<!-- --> 1189</a> 1190<ul class="blockList"> 1191<li class="blockList"> 1192<h4>nonNullString</h4> 1193<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nonNullString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> str)</pre> 1194<dl> 1195<dt><span class="simpleTagLabel">Since:</span></dt> 1196<dd>2.9</dd> 1197</dl> 1198</li> 1199</ul> 1200<a name="quotedOr-java.lang.Object-java.lang.String-"> 1201<!-- --> 1202</a> 1203<ul class="blockList"> 1204<li class="blockList"> 1205<h4>quotedOr</h4> 1206<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> quotedOr(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> str, 1207 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> forNull)</pre> 1208<div class="block">Returns either quoted value (with double-quotes) -- if argument non-null 1209 String -- or String NULL (no quotes) (if null).</div> 1210<dl> 1211<dt><span class="simpleTagLabel">Since:</span></dt> 1212<dd>2.9</dd> 1213</dl> 1214</li> 1215</ul> 1216<a name="getClassDescription-java.lang.Object-"> 1217<!-- --> 1218</a> 1219<ul class="blockList"> 1220<li class="blockList"> 1221<h4>getClassDescription</h4> 1222<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getClassDescription(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> classOrInstance)</pre> 1223<div class="block">Helper method used to construct appropriate description 1224 when passed either type (Class) or an instance; in latter 1225 case, class of instance is to be used.</div> 1226</li> 1227</ul> 1228<a name="getTypeDescription-com.fasterxml.jackson.databind.JavaType-"> 1229<!-- --> 1230</a> 1231<ul class="blockList"> 1232<li class="blockList"> 1233<h4>getTypeDescription</h4> 1234<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getTypeDescription(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> fullType)</pre> 1235<div class="block">Helper method to create and return "backticked" description of given 1236 resolved type (or, <code>"null"</code> if <code>null</code> passed), similar 1237 to return vaue of <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.html#getClassDescription-java.lang.Object-"><code>getClassDescription(Object)</code></a>.</div> 1238<dl> 1239<dt><span class="paramLabel">Parameters:</span></dt> 1240<dd><code>fullType</code> - Fully resolved type or null</dd> 1241<dt><span class="returnLabel">Returns:</span></dt> 1242<dd>String description of type including generic type parameters, surrounded 1243 by backticks, if type passed; or string "null" if {code null} passed</dd> 1244<dt><span class="simpleTagLabel">Since:</span></dt> 1245<dd>2.10</dd> 1246</dl> 1247</li> 1248</ul> 1249<a name="classNameOf-java.lang.Object-"> 1250<!-- --> 1251</a> 1252<ul class="blockList"> 1253<li class="blockList"> 1254<h4>classNameOf</h4> 1255<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> classNameOf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> inst)</pre> 1256<div class="block">Helper method used to construct appropriate description 1257 when passed either type (Class) or an instance; in latter 1258 case, class of instance is to be used.</div> 1259<dl> 1260<dt><span class="simpleTagLabel">Since:</span></dt> 1261<dd>2.9</dd> 1262</dl> 1263</li> 1264</ul> 1265<a name="nameOf-java.lang.Class-"> 1266<!-- --> 1267</a> 1268<ul class="blockList"> 1269<li class="blockList"> 1270<h4>nameOf</h4> 1271<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameOf(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1272<div class="block">Returns either `cls.getName()` (if `cls` not null), 1273 or "[null]" if `cls` is null.</div> 1274<dl> 1275<dt><span class="simpleTagLabel">Since:</span></dt> 1276<dd>2.9</dd> 1277</dl> 1278</li> 1279</ul> 1280<a name="nameOf-com.fasterxml.jackson.databind.util.Named-"> 1281<!-- --> 1282</a> 1283<ul class="blockList"> 1284<li class="blockList"> 1285<h4>nameOf</h4> 1286<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameOf(<a href="../../../../../com/fasterxml/jackson/databind/util/Named.html" title="interface in com.fasterxml.jackson.databind.util">Named</a> named)</pre> 1287<div class="block">Returns either backtick-quoted `named.getName()` (if `named` not null), 1288 or "[null]" if `named` is null.</div> 1289<dl> 1290<dt><span class="simpleTagLabel">Since:</span></dt> 1291<dd>2.9</dd> 1292</dl> 1293</li> 1294</ul> 1295<a name="backticked-java.lang.String-"> 1296<!-- --> 1297</a> 1298<ul class="blockList"> 1299<li class="blockList"> 1300<h4>backticked</h4> 1301<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> backticked(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> text)</pre> 1302<div class="block">Returns either `text` or [null].</div> 1303<dl> 1304<dt><span class="simpleTagLabel">Since:</span></dt> 1305<dd>2.9</dd> 1306</dl> 1307</li> 1308</ul> 1309<a name="exceptionMessage-java.lang.Throwable-"> 1310<!-- --> 1311</a> 1312<ul class="blockList"> 1313<li class="blockList"> 1314<h4>exceptionMessage</h4> 1315<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> exceptionMessage(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> t)</pre> 1316<div class="block">Helper method that returns <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html?is-external=true#getMessage--" title="class or interface in java.lang"><code>Throwable.getMessage()</code></a> for all other exceptions 1317 except for <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonProcessingException</code></a>, for which <code>getOriginalMessage()</code> is 1318 returned instead. 1319 Method is used to avoid accidentally including trailing location information twice 1320 in message when wrapping exceptions.</div> 1321<dl> 1322<dt><span class="simpleTagLabel">Since:</span></dt> 1323<dd>2.9.7</dd> 1324</dl> 1325</li> 1326</ul> 1327<a name="defaultValue-java.lang.Class-"> 1328<!-- --> 1329</a> 1330<ul class="blockList"> 1331<li class="blockList"> 1332<h4>defaultValue</h4> 1333<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> defaultValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1334<div class="block">Helper method used to get default value for wrappers used for primitive types 1335 (0 for Integer etc)</div> 1336</li> 1337</ul> 1338<a name="wrapperType-java.lang.Class-"> 1339<!-- --> 1340</a> 1341<ul class="blockList"> 1342<li class="blockList"> 1343<h4>wrapperType</h4> 1344<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> wrapperType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> primitiveType)</pre> 1345<div class="block">Helper method for finding wrapper type for given primitive type (why isn't 1346 there one in JDK?)</div> 1347</li> 1348</ul> 1349<a name="primitiveType-java.lang.Class-"> 1350<!-- --> 1351</a> 1352<ul class="blockList"> 1353<li class="blockList"> 1354<h4>primitiveType</h4> 1355<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> primitiveType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> type)</pre> 1356<div class="block">Method that can be used to find primitive type for given class if (but only if) 1357 it is either wrapper type or primitive type; returns `null` if type is neither.</div> 1358<dl> 1359<dt><span class="simpleTagLabel">Since:</span></dt> 1360<dd>2.7</dd> 1361</dl> 1362</li> 1363</ul> 1364<a name="checkAndFixAccess-java.lang.reflect.Member-"> 1365<!-- --> 1366</a> 1367<ul class="blockList"> 1368<li class="blockList"> 1369<h4>checkAndFixAccess</h4> 1370<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 1371public static void checkAndFixAccess(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member)</pre> 1372<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.7 call variant that takes boolean flag.</span></div> 1373<div class="block">Equivalent to call: 1374<pre> 1375 checkAndFixAccess(member, false); 1376</pre></div> 1377</li> 1378</ul> 1379<a name="checkAndFixAccess-java.lang.reflect.Member-boolean-"> 1380<!-- --> 1381</a> 1382<ul class="blockList"> 1383<li class="blockList"> 1384<h4>checkAndFixAccess</h4> 1385<pre>public static void checkAndFixAccess(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> member, 1386 boolean force)</pre> 1387<div class="block">Method that is called if a <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect"><code>Member</code></a> may need forced access, 1388 to force a field, method or constructor to be accessible: this 1389 is done by calling <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/AccessibleObject.html?is-external=true#setAccessible-boolean-" title="class or interface in java.lang.reflect"><code>AccessibleObject.setAccessible(boolean)</code></a>.</div> 1390<dl> 1391<dt><span class="paramLabel">Parameters:</span></dt> 1392<dd><code>member</code> - Accessor to call <code>setAccessible()</code> on.</dd> 1393<dd><code>force</code> - Whether to always try to make accessor accessible (true), 1394 or only if needed as per access rights (false)</dd> 1395<dt><span class="simpleTagLabel">Since:</span></dt> 1396<dd>2.7</dd> 1397</dl> 1398</li> 1399</ul> 1400<a name="isEnumType-java.lang.Class-"> 1401<!-- --> 1402</a> 1403<ul class="blockList"> 1404<li class="blockList"> 1405<h4>isEnumType</h4> 1406<pre>public static boolean isEnumType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawType)</pre> 1407<div class="block">Helper method that encapsulates reliable check on whether 1408 given raw type "is an Enum", that is, is or extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang"><code>Enum</code></a>.</div> 1409<dl> 1410<dt><span class="simpleTagLabel">Since:</span></dt> 1411<dd>2.10.1</dd> 1412</dl> 1413</li> 1414</ul> 1415<a name="findEnumType-java.util.EnumSet-"> 1416<!-- --> 1417</a> 1418<ul class="blockList"> 1419<li class="blockList"> 1420<h4>findEnumType</h4> 1421<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> findEnumType(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util">EnumSet</a><?> s)</pre> 1422<div class="block">Helper method that can be used to dynamically figure out 1423 enumeration type of given <a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><code>EnumSet</code></a>, without having 1424 access to its declaration. 1425 Code is needed to work around design flaw in JDK.</div> 1426</li> 1427</ul> 1428<a name="findEnumType-java.util.EnumMap-"> 1429<!-- --> 1430</a> 1431<ul class="blockList"> 1432<li class="blockList"> 1433<h4>findEnumType</h4> 1434<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> findEnumType(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumMap.html?is-external=true" title="class or interface in java.util">EnumMap</a><?,?> m)</pre> 1435<div class="block">Helper method that can be used to dynamically figure out 1436 enumeration type of given <a href="https://docs.oracle.com/javase/8/docs/api/java/util/EnumSet.html?is-external=true" title="class or interface in java.util"><code>EnumSet</code></a>, without having 1437 access to its declaration. 1438 Code is needed to work around design flaw in JDK.</div> 1439</li> 1440</ul> 1441<a name="findEnumType-java.lang.Enum-"> 1442<!-- --> 1443</a> 1444<ul class="blockList"> 1445<li class="blockList"> 1446<h4>findEnumType</h4> 1447<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> findEnumType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> en)</pre> 1448<div class="block">Helper method that can be used to dynamically figure out formal 1449 enumeration type (class) for given enumeration. This is either 1450 class of enum instance (for "simple" enumerations), or its 1451 superclass (for enums with instance fields or methods)</div> 1452</li> 1453</ul> 1454<a name="findEnumType-java.lang.Class-"> 1455<!-- --> 1456</a> 1457<ul class="blockList"> 1458<li class="blockList"> 1459<h4>findEnumType</h4> 1460<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> findEnumType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1461<div class="block">Helper method that can be used to dynamically figure out formal 1462 enumeration type (class) for given class of an enumeration value. 1463 This is either class of enum instance (for "simple" enumerations), 1464 or its superclass (for enums with instance fields or methods)</div> 1465</li> 1466</ul> 1467<a name="findFirstAnnotatedEnumValue-java.lang.Class-java.lang.Class-"> 1468<!-- --> 1469</a> 1470<ul class="blockList"> 1471<li class="blockList"> 1472<h4>findFirstAnnotatedEnumValue</h4> 1473<pre>public static <T extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>> <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> findFirstAnnotatedEnumValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 1474 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> annotationClass)</pre> 1475<div class="block">A method that will look for the first Enum value annotated with the given Annotation. 1476 <p> 1477 If there's more than one value annotated, the first one found will be returned. Which one exactly is used is undetermined.</div> 1478<dl> 1479<dt><span class="paramLabel">Parameters:</span></dt> 1480<dd><code>enumClass</code> - The Enum class to scan for a value with the given annotation</dd> 1481<dd><code>annotationClass</code> - The annotation to look for.</dd> 1482<dt><span class="returnLabel">Returns:</span></dt> 1483<dd>the Enum value annotated with the given Annotation or <code>null</code> if none is found.</dd> 1484<dt><span class="throwsLabel">Throws:</span></dt> 1485<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if there's a reflection issue accessing the Enum</dd> 1486<dt><span class="simpleTagLabel">Since:</span></dt> 1487<dd>2.8</dd> 1488</dl> 1489</li> 1490</ul> 1491<a name="isJacksonStdImpl-java.lang.Object-"> 1492<!-- --> 1493</a> 1494<ul class="blockList"> 1495<li class="blockList"> 1496<h4>isJacksonStdImpl</h4> 1497<pre>public static boolean isJacksonStdImpl(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> impl)</pre> 1498<div class="block">Method that can be called to determine if given Object is the default 1499 implementation Jackson uses; as opposed to a custom serializer installed by 1500 a module or calling application. Determination is done using 1501 <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) 1502 class. 1503<p> 1504 NOTE: passing `null` is legal, and will result in <code>true</code> 1505 being returned.</div> 1506</li> 1507</ul> 1508<a name="isJacksonStdImpl-java.lang.Class-"> 1509<!-- --> 1510</a> 1511<ul class="blockList"> 1512<li class="blockList"> 1513<h4>isJacksonStdImpl</h4> 1514<pre>public static boolean isJacksonStdImpl(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> implClass)</pre> 1515</li> 1516</ul> 1517<a name="isJDKClass-java.lang.Class-"> 1518<!-- --> 1519</a> 1520<ul class="blockList"> 1521<li class="blockList"> 1522<h4>isJDKClass</h4> 1523<pre>public static boolean isJDKClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawType)</pre> 1524<div class="block">Some aspects of handling need to be changed for JDK types (and possibly 1525 some extensions under <code>javax.</code>?): for example, forcing of access 1526 will not work well for future JDKs (12 and later).</div> 1527<dl> 1528<dt><span class="simpleTagLabel">Since:</span></dt> 1529<dd>2.11</dd> 1530</dl> 1531</li> 1532</ul> 1533<a name="isNonStaticInnerClass-java.lang.Class-"> 1534<!-- --> 1535</a> 1536<ul class="blockList"> 1537<li class="blockList"> 1538<h4>isNonStaticInnerClass</h4> 1539<pre>public static boolean isNonStaticInnerClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1540</li> 1541</ul> 1542<a name="getPackageName-java.lang.Class-"> 1543<!-- --> 1544</a> 1545<ul class="blockList"> 1546<li class="blockList"> 1547<h4>getPackageName</h4> 1548<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getPackageName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1549<dl> 1550<dt><span class="simpleTagLabel">Since:</span></dt> 1551<dd>2.7</dd> 1552</dl> 1553</li> 1554</ul> 1555<a name="hasEnclosingMethod-java.lang.Class-"> 1556<!-- --> 1557</a> 1558<ul class="blockList"> 1559<li class="blockList"> 1560<h4>hasEnclosingMethod</h4> 1561<pre>public static boolean hasEnclosingMethod(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1562<dl> 1563<dt><span class="simpleTagLabel">Since:</span></dt> 1564<dd>2.7</dd> 1565</dl> 1566</li> 1567</ul> 1568<a name="getDeclaredFields-java.lang.Class-"> 1569<!-- --> 1570</a> 1571<ul class="blockList"> 1572<li class="blockList"> 1573<h4>getDeclaredFields</h4> 1574<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 1575public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Field.html?is-external=true" title="class or interface in java.lang.reflect">Field</a>[] getDeclaredFields(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1576<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">since 2.11 (just call Class method directly)</span></div> 1577</li> 1578</ul> 1579<a name="getDeclaredMethods-java.lang.Class-"> 1580<!-- --> 1581</a> 1582<ul class="blockList"> 1583<li class="blockList"> 1584<h4>getDeclaredMethods</h4> 1585<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 1586public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[] getDeclaredMethods(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1587<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">since 2.11 (just call Class method directly)</span></div> 1588</li> 1589</ul> 1590<a name="findClassAnnotations-java.lang.Class-"> 1591<!-- --> 1592</a> 1593<ul class="blockList"> 1594<li class="blockList"> 1595<h4>findClassAnnotations</h4> 1596<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Annotation.html?is-external=true" title="class or interface in java.lang.annotation">Annotation</a>[] findClassAnnotations(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1597<dl> 1598<dt><span class="simpleTagLabel">Since:</span></dt> 1599<dd>2.7</dd> 1600</dl> 1601</li> 1602</ul> 1603<a name="getClassMethods-java.lang.Class-"> 1604<!-- --> 1605</a> 1606<ul class="blockList"> 1607<li class="blockList"> 1608<h4>getClassMethods</h4> 1609<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>[] getClassMethods(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1610<div class="block">Helper method that gets methods declared in given class; usually a simple thing, 1611 but sometimes (as per [databind#785]) more complicated, depending on classloader 1612 setup.</div> 1613<dl> 1614<dt><span class="simpleTagLabel">Since:</span></dt> 1615<dd>2.9</dd> 1616</dl> 1617</li> 1618</ul> 1619<a name="getConstructors-java.lang.Class-"> 1620<!-- --> 1621</a> 1622<ul class="blockList"> 1623<li class="blockList"> 1624<h4>getConstructors</h4> 1625<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.Ctor.html" title="class in com.fasterxml.jackson.databind.util">ClassUtil.Ctor</a>[] getConstructors(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1626<dl> 1627<dt><span class="simpleTagLabel">Since:</span></dt> 1628<dd>2.7</dd> 1629</dl> 1630</li> 1631</ul> 1632<a name="getDeclaringClass-java.lang.Class-"> 1633<!-- --> 1634</a> 1635<ul class="blockList"> 1636<li class="blockList"> 1637<h4>getDeclaringClass</h4> 1638<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> getDeclaringClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1639<dl> 1640<dt><span class="simpleTagLabel">Since:</span></dt> 1641<dd>2.7</dd> 1642</dl> 1643</li> 1644</ul> 1645<a name="getGenericSuperclass-java.lang.Class-"> 1646<!-- --> 1647</a> 1648<ul class="blockList"> 1649<li class="blockList"> 1650<h4>getGenericSuperclass</h4> 1651<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> getGenericSuperclass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1652<dl> 1653<dt><span class="simpleTagLabel">Since:</span></dt> 1654<dd>2.7</dd> 1655</dl> 1656</li> 1657</ul> 1658<a name="getGenericInterfaces-java.lang.Class-"> 1659<!-- --> 1660</a> 1661<ul class="blockList"> 1662<li class="blockList"> 1663<h4>getGenericInterfaces</h4> 1664<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>[] getGenericInterfaces(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1665<dl> 1666<dt><span class="simpleTagLabel">Since:</span></dt> 1667<dd>2.7</dd> 1668</dl> 1669</li> 1670</ul> 1671<a name="getEnclosingClass-java.lang.Class-"> 1672<!-- --> 1673</a> 1674<ul class="blockListLast"> 1675<li class="blockList"> 1676<h4>getEnclosingClass</h4> 1677<pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> getEnclosingClass(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> cls)</pre> 1678<dl> 1679<dt><span class="simpleTagLabel">Since:</span></dt> 1680<dd>2.7</dd> 1681</dl> 1682</li> 1683</ul> 1684</li> 1685</ul> 1686</li> 1687</ul> 1688</div> 1689</div> 1690<!-- ========= END OF CLASS DATA ========= --> 1691<!-- ======= START OF BOTTOM NAVBAR ====== --> 1692<div class="bottomNav"><a name="navbar.bottom"> 1693<!-- --> 1694</a> 1695<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 1696<a name="navbar.bottom.firstrow"> 1697<!-- --> 1698</a> 1699<ul class="navList" title="Navigation"> 1700<li><a href="../../../../../overview-summary.html">Overview</a></li> 1701<li><a href="package-summary.html">Package</a></li> 1702<li class="navBarCell1Rev">Class</li> 1703<li><a href="class-use/ClassUtil.html">Use</a></li> 1704<li><a href="package-tree.html">Tree</a></li> 1705<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 1706<li><a href="../../../../../index-all.html">Index</a></li> 1707<li><a href="../../../../../help-doc.html">Help</a></li> 1708</ul> 1709</div> 1710<div class="subNav"> 1711<ul class="navList"> 1712<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> 1713<li><a href="../../../../../com/fasterxml/jackson/databind/util/ClassUtil.Ctor.html" title="class in com.fasterxml.jackson.databind.util"><span class="typeNameLink">Next Class</span></a></li> 1714</ul> 1715<ul class="navList"> 1716<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/ClassUtil.html" target="_top">Frames</a></li> 1717<li><a href="ClassUtil.html" target="_top">No Frames</a></li> 1718</ul> 1719<ul class="navList" id="allclasses_navbar_bottom"> 1720<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 1721</ul> 1722<div> 1723<script type="text/javascript"><!-- 1724 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1725 if(window==top) { 1726 allClassesLink.style.display = "block"; 1727 } 1728 else { 1729 allClassesLink.style.display = "none"; 1730 } 1731 //--> 1732</script> 1733</div> 1734<div> 1735<ul class="subNavList"> 1736<li>Summary: </li> 1737<li><a href="#nested.class.summary">Nested</a> | </li> 1738<li>Field | </li> 1739<li><a href="#constructor.summary">Constr</a> | </li> 1740<li><a href="#method.summary">Method</a></li> 1741</ul> 1742<ul class="subNavList"> 1743<li>Detail: </li> 1744<li>Field | </li> 1745<li><a href="#constructor.detail">Constr</a> | </li> 1746<li><a href="#method.detail">Method</a></li> 1747</ul> 1748</div> 1749<a name="skip.navbar.bottom"> 1750<!-- --> 1751</a></div> 1752<!-- ======== END OF BOTTOM NAVBAR ======= --> 1753<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 1754</body> 1755</html> 1756