Last active
January 1, 2016 17:29
-
-
Save vexorian/8177600 to your computer and use it in GitHub Desktop.
Problem definition using Java types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head><title>Definition test</title> | |
<style type='text/css'> | |
.problem-definition { | |
padding-left: 20px; | |
margin-top: 1em; | |
margin-bottom: 1em; | |
} | |
.problem-definitionlines { | |
display: table; | |
} | |
.definition-line { | |
display: table-row; | |
} | |
.definition-name, .definition-value { | |
display: table-cell; | |
} | |
.definition-value { | |
padding-left: 0.5em; | |
} | |
.definition-name:after { | |
content: ":"; | |
} | |
</style> | |
</head> | |
<body> | |
<!-- Problem definition --> | |
<div class="section"> | |
<div class="section-title">Definition</div> | |
<div class="problem-definition"> | |
<ul class "problem-definition-lines"> | |
<li class="definition-line" id='class-line'> | |
<span class='definition-name'>Class</span> | |
<span class='definition-value'>${Problem.Name}</span> | |
</li> | |
<li class="definition-line" id='method-line'> | |
<span class='definition-name'>Method</span> | |
<span class='definition-value'>${Method.Name}</span> | |
</li> | |
<li class="definition-line" id='parameters-line'> | |
<span class='definition-name'>Parameters</span> | |
<span class='definition-value'>${foreach Method.Params p , }${p.Type;html(cpp)}${end}</span> | |
</li> | |
<li class="definition-line" id='returns-line'> | |
<span class='definition-name'>Returns</span> | |
<span class='definition-value'>${Method.ReturnType;html(cpp)}</span> | |
</li> | |
<li class="definition-line" id='signature-line'> | |
<span class='definition-name'>Method signature</span> | |
<span class='definition-value'> | |
${Method.ReturnType;html(cpp)} ${Method.Name}(${foreach Method.Params p , }${p.Type;html(cpp)} ${p.Name}${end}) | |
</span> | |
</li> | |
</ul> | |
<div class="problem-definition-public-tip">(be sure your method is public)</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment