<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="JUnparse.html">
<link rel="next" href="JParse.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="JBasics" rel="Chapter" href="JBasics.html">
<link title="JBasicsLow" rel="Chapter" href="JBasicsLow.html">
<link title="JCode" rel="Chapter" href="JCode.html">
<link title="JClassLow" rel="Chapter" href="JClassLow.html">
<link title="JSignature" rel="Chapter" href="JSignature.html">
<link title="JClass" rel="Chapter" href="JClass.html">
<link title="JDumpBasics" rel="Chapter" href="JDumpBasics.html">
<link title="JUnparseSignature" rel="Chapter" href="JUnparseSignature.html">
<link title="JDumpLow" rel="Chapter" href="JDumpLow.html">
<link title="JDumpJasmin" rel="Chapter" href="JDumpJasmin.html">
<link title="JParseCode" rel="Chapter" href="JParseCode.html">
<link title="JInstruction" rel="Chapter" href="JInstruction.html">
<link title="JUnparse" rel="Chapter" href="JUnparse.html">
<link title="JParseSignature" rel="Chapter" href="JParseSignature.html">
<link title="JParse" rel="Chapter" href="JParse.html">
<link title="JLow2High" rel="Chapter" href="JLow2High.html">
<link title="JHigh2Low" rel="Chapter" href="JHigh2Low.html">
<link title="JFile" rel="Chapter" href="JFile.html">
<link title="JManifest" rel="Chapter" href="JManifest.html">
<link title="Javalib" rel="Chapter" href="Javalib.html">
<link title="Ptmap" rel="Chapter" href="Ptmap.html">
<link title="Ptset" rel="Chapter" href="Ptset.html"><link title="Parsing descriptors and their components " rel="Section" href="#2_Parsingdescriptorsandtheircomponents">
<link title="Parsing generic signatures" rel="Section" href="#2_Parsinggenericsignatures">
<title>Javalib : JParseSignature</title>
</head>
<body>
<div class="navbar"><a href="JUnparse.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="JParse.html">Next</a>
</div>
<center><h1>Module <a href="type_JParseSignature.html">JParseSignature</a></h1></center>
<br>
<pre><span class="keyword">module</span> JParseSignature: <code class="code"><span class="keyword">sig</span></code> <a href="JParseSignature.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>This module handles the decoding of descriptors and signatures.<br>
<hr width="100%">
<br>
<span id="2_Parsingdescriptorsandtheircomponents"><h2>Parsing descriptors and their components </h2></span><br>
<pre><span id="VALparse_objectType"><span class="keyword">val</span> parse_objectType</span> : <code class="type">string -> <a href="JBasics.html#TYPEobject_type">JBasics.object_type</a></code></pre><div class="info">
<b>Raises</b> <code>Class_structure_error</code> if the string does not correspond the an object
    type.<br>
</div>
<pre><span id="VALparse_field_descriptor"><span class="keyword">val</span> parse_field_descriptor</span> : <code class="type">string -> <a href="JBasics.html#TYPEvalue_type">JBasics.value_type</a></code></pre><div class="info">
<b>Raises</b> <code>Class_structure_error</code> if the string does not correspond the a field
    descriptor.<br>
</div>
<pre><span id="VALparse_method_descriptor"><span class="keyword">val</span> parse_method_descriptor</span> : <code class="type">string -> <a href="JBasics.html#TYPEvalue_type">JBasics.value_type</a> list * <a href="JBasics.html#TYPEvalue_type">JBasics.value_type</a> option</code></pre><div class="info">
<b>Raises</b> <code>Class_structure_error</code> if the string does not correspond the a method
    descriptor.<br>
</div>
<pre><span id="VALparse_descriptor"><span class="keyword">val</span> parse_descriptor</span> : <code class="type">string -> <a href="JBasics.html#TYPEdescriptor">JBasics.descriptor</a></code></pre><div class="info">
<b>Raises</b> <code>Class_structure_error</code> if the string does not correspond the a
    descriptor.<br>
</div>
<br>
<span id="2_Parsinggenericsignatures"><h2>Parsing generic signatures</h2></span><br>
<pre><span id="VALparse_ClassSignature"><span class="keyword">val</span> parse_ClassSignature</span> : <code class="type">string -> <a href="JSignature.html#TYPEclassSignature">JSignature.classSignature</a></code></pre><div class="info">
<code class="code">parse_ClassSignature s</code> parses a Signature attribute and expects
    to find a ClassSignature (as describe in paragraph 4.4.4 of the
    Java Virtual Machine Specification of Java 5).<br>
<b>Raises</b> <code>Class_structure_error</code> if the signature does not correspond
    to the specifications.<br>
</div>
<pre><span id="VALparse_MethodTypeSignature"><span class="keyword">val</span> parse_MethodTypeSignature</span> : <code class="type">string -> <a href="JSignature.html#TYPEmethodTypeSignature">JSignature.methodTypeSignature</a></code></pre><div class="info">
<code class="code">parse_MethodTypeSignature s</code> parses a Signature attribute and
    expects to find a Methodtypesignature (as describe in paragraph
    4.4.4 of the Java Virtual Machine Specification of Java 5).<br>
<b>Raises</b> <code>Class_structure_error</code> if the signature does not correspond
    to the specifications.<br>
</div>
<pre><span id="VALparse_FieldTypeSignature"><span class="keyword">val</span> parse_FieldTypeSignature</span> : <code class="type">string -> <a href="JSignature.html#TYPEfieldTypeSignature">JSignature.fieldTypeSignature</a></code></pre><div class="info">
<code class="code">parse_FieldTypeSignature s</code> parses a Signature attribute <code class="code">s</code> and
    expects to find a FieldTypeSignature (as describe in paragraph
    4.4.4 of the Java Virtual Machine Specification of Java 5).<br>
<b>Raises</b> <code>Class_structure_error</code> if the signature does not correspond
    to the specifications.<br>
</div>
</body></html>