This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Nullsafe__Initializers (infer.Nullsafe__Initializers)</title><linkrel="stylesheet"href="../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.0"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../index.html">infer</a>» Nullsafe__Initializers</nav><h1>Module <code>Nullsafe__Initializers</code></h1></header><aside><p>Functionality for evaluating typestates after class initialization. Nullsafe's notion of initialization augments Java's one in the following way:</p><ol><li>A method is considered "initializer" if it is either marked as <code>@Initializer</code> or is in the list of known initializer methods (e.g. onCreate()).</li><li>For each constructor, Nullsafe assumes all initializer methods will be called after the constructor is called. (Nullsafe does not check if this assumption is indeed true).</li><li>Nullsafe uses assumption 2, in order to check if class fields were initialized or not. (a non-nullable field is considered not initialized if it is not initialized in at least one constructor).</li></ol></aside><dl><dtclass="spec value"id="val-final_initializer_typestates_lazy"><ahref="#val-final_initializer_typestates_lazy"class="anchor"></a><code><spanclass="keyword">val</span> final_initializer_typestates_lazy : <ahref="../IR/Tenv/index.html#type-t">IR.Tenv.t</a><span>-></span><ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a><span>-></span><ahref="../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a><span>-></span><span>(bool <span>-></span><ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a><span>-></span><ahref="../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a><span>-></span><span><spanclass="type-var">'a</span> option</span><span>-></span><spanclass="type-var">'b</span> * <span><spanclass="type-var">'c</span> option</span>)</span><span>-></span><span><span><span>(<ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a> * <spanclass="type-var">'c</span>)</span> list</span> lazy_t</span></code></dt><dd><p>Typestates after the current constructor and all initializer procedures.</p></dd></dl><dl><dtclass="spec value"id="val-final_constructor_typestates_lazy"><ahref="#val-final_constructor_typestates_lazy"class="anchor"></a><code><spanclass="keyword">val</span> final_constructor_typestates_lazy : <ahref="../IR/Tenv/index.html#type-t">IR.Tenv.t</a><span>-></span><ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a><span>-></span><span>(bool <span>-></span><ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a><span>-></span><ahref="../IR/Procdesc/index.html#type-t">IR.Procdesc.t</a><span>-></span><span><spanclass="type-var">'a</span> option</span><span>-></span><spanclass="type-var">'b</span> * <span><spanclass="type-var">'c</span> option</span>)</span><span>-></span><span><span><span>(<ahref="../IR/Procname/index.html#type-t">IR.Procname.t</a> * <spanclass="type-var">'c</span>)</span> list</span> lazy_t</span></code></dt><dd><p>Typestates after all constructors.</p></dd></dl></div></body></html>