<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>Nullsafe__NullsafeMode (infer.Nullsafe__NullsafeMode)</title><linkrel="stylesheet"href="../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.2"/><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__NullsafeMode</nav><h1>Module <code>Nullsafe__NullsafeMode</code></h1></header><aside><p>Represents a type-checking mode of nullsafe.</p></aside><divclass="spec module"id="module-Trust"><ahref="#module-Trust"class="anchor"></a><code><spanclass="keyword">module</span><ahref="Trust/index.html">Trust</a> : <spanclass="keyword">sig</span> ... <spanclass="keyword">end</span></code></div><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code><code> = </code><tableclass="variant"><trid="type-t.Default"class="anchored"><tdclass="def constructor"><ahref="#type-t.Default"class="anchor"></a><code>| </code><code><spanclass="constructor">Default</span></code></td></tr><trid="type-t.Local"class="anchored"><tdclass="def constructor"><ahref="#type-t.Local"class="anchor"></a><code>| </code><code><spanclass="constructor">Local</span><spanclass="keyword">of</span><ahref="Trust/index.html#type-t">Trust.t</a></code></td></tr><trid="type-t.Strict"class="anchored"><tdclass="def constructor"><ahref="#type-t.Strict"class="anchor"></a><code>| </code><code><spanclass="constructor">Strict</span></code></td></tr></table></dt></dl><div><divclass="spec include"><divclass="doc"><dl><dtclass="spec value"id="val-compare"><ahref="#val-compare"class="anchor"></a><code><spanclass="keyword">val</span> compare : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> int</code></dt><dtclass="spec value"id="val-equal"><ahref="#val-equal"class="anchor"></a><code><spanclass="keyword">val</span> equal : <ahref="index.html#type-t">t</a><span>-></span><ahref="index.html#type-t">t</a><span>-></span> bool</code></dt></dl></div></div></div><dl><dtclass="spec value"id="val-of_annot"><ahref="#val-of_annot"class="anchor"></a><code><spanclass="keyword">val</span> of_annot : <ahref="../IR/Annot/index.html#type-t">IR.Annot.t</a><span>-></span><span><ahref="index.html#type-t">t</a> option</span></code></dt><dd><p>Returns <code>t</code> when provided annotation matches the format of <code>@Nullsafe</code>, otherwise <code>None</code>.</p></dd></dl><dl><dtclass="spec value"id="val-of_class"><ahref="#val-of_class"class="anchor"></a><code><spanclass="keyword">val</span> of_class : <ahref="../IR/Tenv/index.html#type-t">IR.Tenv.t</a><span>-></span><ahref="../IR/JavaClassName/index.html#type-t">IR.JavaClassName.t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Extracts mode information from class annotations</p></dd></dl><dl><dtclass="spec value"id="val-of_procname"><ahref="#val-of_procname"class="anchor"></a><code><spanclass="keyword">val</span> of_procname : <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="index.html#type-t">t</a></code></dt><dd><p>Extracts mode information from a class where procname is defined. Should be called for Java procnames only; throws otherwise</p></dd></dl><dl><dtclass="spec value"id="val-of_java_procname"><ahref="#val-of_java_procname"class="anchor"></a><code><spanclass="keyword">val</span> of_java_procname : <ahref="../IR/Tenv/index.html#type-t">IR.Tenv.t</a><span>-></span><ahref="../IR/Procname/Java/index.html#type-t">IR.Procname.Java.t</a><span>-></span><ahref="index.html#type-t">t</a></code></dt><dd><p>Extracts mode information from