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