/
class.mtt
53 lines (48 loc) · 1.45 KB
/
class.mtt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
::use 'main.mtt'::
<div class="page-header">
<span ::cond api.isDefined("source-path"):: class="viewsource">
<a href="::api.getSourceLink(type)::" class="btn btn-medium"><i class="fa fa-eye"></i> View source</a>
</span>
<h1>
<small>::if type.isInterface::interface::else::class::end::</small> ::api.getPathName(type.path)::$$printTypeParams(::type.params::)
</h1>
$$printPackage(::type::)
::if type.superClass != null::
<h4>
<small>extends $$printLinkedPath(::type.superClass.path::,::type.superClass.params::)</small>
</h4>
::end::
<h4 ::cond (type.interfaces.length>0)::>
<small>implements
::foreach i type.interfaces::
$$printLinkedPath(::i.path::,::i.params::)::if ((type.interfaces.length!=1)&&(repeat.i.index<(type.interfaces.length-1)))::, ::end::
::end::
</small>
</h4>
$$printModule(::type.module::)
<h4 ::cond subClasses !=null::>
<small>
::set title = "extended by "::
::set infos = subClasses::
::use "related_types.mtt"::::end::
</small>
</h4>
<h4 ::cond implementors !=null::>
<small>
::set title = "implemented by "::
::set infos = implementors::
::use "related_types.mtt"::::end::
</small>
</h4>
$$printPlatforms(::type.platforms::,::true::)
</div>
<div class="body">
<div class="doc doc-main" ::cond type.doc != null::>
<div class="indent">
::raw type.doc::
</div>
</div>
$$printClassBody(::type::)
$$printInheritedFields(::type::)
</div>
::end::