| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "../xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| <link rel="stylesheet" type="text/css" href="../css/ot.css" /> |
| <link rel="stylesheet" type="text/css" href="../css/otjld.css" /> |
| <title>OT/J Language Definition v1.3</title> |
| </head> |
| <body class="otdt"> |
| <div id="content"> |
| <table class="nav"> |
| <tr> |
| <td class="back"><a id="top"></a><a href="sA.5.html" rel="prev"><< §A.5 Statements</a></td> |
| <td class="top"><a href="index.html" rel="contents">↑ Table of Contents ↑</a></td> |
| <td class="next"><a href="sA.7.html" rel="next">§A.7 Guard predicates >></a></td> |
| </tr> |
| </table> |
| <div class="breadcrumb"><a class="nav" href="sA.html" rel="section">§A OT/J Syntax</a></div> |
| <div class="sect depth2" id="sA.6"> |
| <h2 class="sect">§A.6 Types<a class="img" href="sA.6.html" title="PermaLink to §A.6 Types"><img style="vertical-align:text-top;margin-left:5px;" src="../images/permalink.png" |
| alt="" /></a></h2> |
| <table class="syntaxrule" id="sA.6.1"> |
| <tr> |
| <td class="sect">§ A.6.1</td> |
| <td class="rule"><span class="title">Type</span><br />... <br /><strong class="blue"><em>LiftingType</em></strong><br /><strong class="blue"><em>AnchoredType</em></strong></td> |
| </tr> |
| </table> |
| <table class="syntaxrule" id="sA.6.2"> |
| <tr> |
| <td class="sect">§ A.6.2</td> |
| <td class="rule"><span class="title">LiftingType</span><br /><em>Type</em><strong class="blue"> as </strong><em>Type</em></td> |
| </tr> |
| </table> |
| <table class="syntaxrule" id="sA.6.3"> |
| <tr> |
| <td class="sect">§ A.6.3</td> |
| <td class="rule"><span class="title">AnchoredType</span><br /><strong class="blue"><em>Path</em></strong>.<em>Type</em></td> |
| </tr> |
| </table> |
| <table class="syntaxrule" id="sA.6.4"> |
| <tr> |
| <td class="sect">§ A.6.4</td> |
| <td class="rule"><span class="title">Path</span><br /><em>Identifier</em><br /><strong class="blue"><em>Path</em></strong>.<em>Identifier</em></td> |
| </tr> |
| </table> |
| <div class="constraints"> |
| <h5 class="constraints">Contextual constraints:</h5> |
| <ol class="constraints"> |
| <li id="sA.6.a"><span class="title">Location</span><br /> |
| A <code>LiftingType</code> may only occur in the parameter list |
| of a method of a team class. |
| |
| </li> |
| <li id="sA.6.b"><span class="title">Role in scope</span><br /> |
| The right hand side type in a <code>LiftingType</code> |
| must be a class directly contained in the enclosing team class |
| (the class may be acquired by <a href="s1.3.1.c.html" |
| title="§1.3.1.(c) Overriding and implicit inheritance" |
| class="sect">implicit inheritance (§1.3.1.(c))</a>). |
| |
| </li> |
| <li id="sA.6.c"><span class="title">Team path</span><br /><em>Note, that the syntax of §A.6.3/4 is deprecated in favor of <a href="sA.9.html" title="§A.9 Value dependent types" class="sect">§A.9</a></em>. |
| <br /> |
| The path in an <code>AnchoredType</code> must refer to an instance of a team class. |
| Each identifier in the path must be declared with the <code>final</code> modifier. |
| |
| </li> |
| </ol> |
| </div> |
| </div> |
| <table class="nav"> |
| <tr> |
| <td class="back"><a href="sA.5.html" rel="prev"><< §A.5 Statements</a></td> |
| <td class="top"><a href="index.html" rel="contents">↑ Table of Contents ↑</a></td> |
| <td class="next"><a href="sA.7.html" rel="next">§A.7 Guard predicates >></a></td> |
| </tr> |
| </table> |
| <div class="breadcrumb"><a class="nav" href="sA.html" rel="section">§A OT/J Syntax</a></div> |
| </div> |
| <div id="footer"> |
| <hr /><a class="w3c img" href="http://jigsaw.w3.org/css-validator/check/referer" |
| shape="rect"><img src="../images/valid-css2-blue.png" alt="Valid CSS!" height="31" width="88" /></a><a class="w3c img" href="http://validator.w3.org/check?uri=referer" shape="rect"><img src="../images/valid-xhtml10-blue.png" alt="Valid XHTML 1.0 Strict" height="31" |
| width="88" /></a><address>© Stephan Herrmann, Christine Hundt, Marco Mosconi</address> |
| OT/J version 1.3 — last modified: 2010-05-18 |
| </div> |
| </body> |
| </html> |