blob: 7bc2b7d1698670749258b4a3efd6a5f5852e9dab [file] [log] [blame]
<!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.1</title>
</head>
<body class="otdt">
<div id="content">
<table class="nav">
<tr>
<td class="back"><a id="top"></a><a href="s1.5.a.html" rel="prev">&lt;&lt;&nbsp;&sect;1.5.(a)&nbsp;Nested teams</a></td>
<td class="top"><a href="index.html" rel="contents">&uarr;&nbsp;Table of Contents&nbsp;&uarr;</a></td>
<td class="next"><a href="s1.5.c.html" rel="next">&sect;1.5.(c)&nbsp;Prohibition of cycles&nbsp;&gt;&gt;</a></td>
</tr>
</table>
<div class="breadcrumb"><a class="nav" href="s1.html" rel="section">&sect;1&nbsp;Teams and Roles</a>&nbsp;&gt;&nbsp;<a class="nav" href="s1.5.html" rel="section">&sect;1.5&nbsp;Team and role nesting</a></div>
<div class="subsect depth3" id="s1.5.b">
<h4 class="subsect">&sect;1.5.(b)&nbsp;<span class="title">Nested classes of roles</span><a class="img" href="s1.5.b.html"
title="PermaLink to (b)&nbsp;Nested classes of roles"><img style="vertical-align:text-top;margin-left:5px;" src="../images/permalink.png"
alt="" /></a></h4>
<p>A regular role class (ie., not marked as <code>team</code>, see above)
may contain local types (see <a href="http://java.sun.com/docs/books/jls/second_edition/html/statements.doc.html#247766"
class="ext">JLS &sect;14.3</a>
- in the example: class <code>Local</code>), anonymous types
(<a href="http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#252986"
class="ext">JLS &sect;15.9.5</a>
- in the example: class defined in lines 18-20)
but no member types (<a href="http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#246026"
class="ext">JLS &sect;8.5</a>
- in the example: illegal class
<code>IllegalMember</code>).
<br />
The effect is, that nested types of a regular role cannot be
used outside the scope of their enclosing role.
</p>
</div>
<table class="nav">
<tr>
<td class="back"><a href="s1.5.a.html" rel="prev">&lt;&lt;&nbsp;&sect;1.5.(a)&nbsp;Nested teams</a></td>
<td class="top"><a href="index.html" rel="contents">&uarr;&nbsp;Table of Contents&nbsp;&uarr;</a></td>
<td class="next"><a href="s1.5.c.html" rel="next">&sect;1.5.(c)&nbsp;Prohibition of cycles&nbsp;&gt;&gt;</a></td>
</tr>
</table>
<div class="breadcrumb"><a class="nav" href="s1.html" rel="section">&sect;1&nbsp;Teams and Roles</a>&nbsp;&gt;&nbsp;<a class="nav" href="s1.5.html" rel="section">&sect;1.5&nbsp;Team and role nesting</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>&copy; Stephan Herrmann, Christine Hundt, Marco Mosconi</address>
OT/J version 1.3.1 &mdash; last modified: 2013-05-28
</div>
</body>
</html>