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