Skip to content

Commit 570357d

Browse files
committed
deploy: f505042
1 parent 600fa92 commit 570357d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+567
-159
lines changed

string-notation/alltypes/index.html

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,31 @@ <h5><a href="../de.joshuagleitze.stringnotation/-base-string-notation/index.html
1313
<p>Base class for implementing string notations.</p>
1414
</tr>
1515
<tr>
16+
<h5><a href="../de.joshuagleitze.stringnotation/-java-constant-name/index.html">de.joshuagleitze.stringnotation.JavaConstantName</a></h5>
17+
<p>A notation for <code>static final</code> fields in Java. This notation is like <a href="../de.joshuagleitze.stringnotation/-screaming-snake-case/index.html">ScreamingSnakeCase</a>, but when <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>, it
18+
will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
19+
</tr>
20+
<tr>
1621
<h5><a href="../de.joshuagleitze.stringnotation/-java-member-name/index.html">de.joshuagleitze.stringnotation.JavaMemberName</a></h5>
17-
<p>A notation for java member names. This notation is like <a href="../de.joshuagleitze.stringnotation/-lower-camel-case/index.html">LowerCamelCase</a>, but will drop any character that is not allowed in a Java
18-
identifier when <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>.</p>
22+
<p>A notation for java member names. This notation is like <a href="../de.joshuagleitze.stringnotation/-lower-camel-case/index.html">LowerCamelCase</a>, but when <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>, it will drop any
23+
character that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
24+
</tr>
25+
<tr>
26+
<h5><a href="../de.joshuagleitze.stringnotation/-java-package-name/index.html">de.joshuagleitze.stringnotation.JavaPackageName</a></h5>
27+
<p>A notation for whole java packages. When <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a> parts, it will drop any character that is not allowed in a Java
28+
identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
29+
</tr>
30+
<tr>
31+
<h5><a href="../de.joshuagleitze.stringnotation/-java-package-part/index.html">de.joshuagleitze.stringnotation.JavaPackagePart</a></h5>
32+
<p>A notation for java package parts. When <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>, it simply concatenates all word parts and drops any character
33+
that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it. When
34+
<a href="../de.joshuagleitze.stringnotation/-string-notation/parse.html">parsing</a>, the notation will recognise word parts both in the <a href="../de.joshuagleitze.stringnotation/-lower-camel-case/index.html">LowerCamelCase</a> and the <a href="../de.joshuagleitze.stringnotation/-snake-case/index.html">SnakeCase</a> notation.
35+
However, neither notation is conventional and parsing will usually yield only one word part on real-world inputs.</p>
1936
</tr>
2037
<tr>
2138
<h5><a href="../de.joshuagleitze.stringnotation/-java-type-name/index.html">de.joshuagleitze.stringnotation.JavaTypeName</a></h5>
22-
<p>A notation for java type names. This notation is like <a href="../de.joshuagleitze.stringnotation/-upper-camel-case/index.html">UpperCamelCase</a>, but will drop any character that is not allowed in a Java
23-
identifier when <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>.</p>
39+
<p>A notation for Java type names. This notation is like <a href="../de.joshuagleitze.stringnotation/-upper-camel-case/index.html">UpperCamelCase</a>, but when <a href="../de.joshuagleitze.stringnotation/-string-notation/print.html">printing</a>, it will drop any
40+
character that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
2441
</tr>
2542
<tr>
2643
<h5><a href="../de.joshuagleitze.stringnotation/-lower-camel-case/index.html">de.joshuagleitze.stringnotation.LowerCamelCase</a></h5>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/index.html

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="../../index.html">string-notation</a>&nbsp;/&nbsp;<a href="../index.html">de.joshuagleitze.stringnotation</a>&nbsp;/&nbsp;<a href="./index.html">BaseStringNotation</a><br/>
99
<br/>
1010
<h1>BaseStringNotation</h1>
11-
<code><span class="keyword">abstract</span> <span class="keyword">class </span><span class="identifier">BaseStringNotation</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-string-notation/index.html"><span class="identifier">StringNotation</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L10">(source)</a>
11+
<code><span class="keyword">abstract</span> <span class="keyword">class </span><span class="identifier">BaseStringNotation</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../-string-notation/index.html"><span class="identifier">StringNotation</span></a></code>
1212
<p>Base class for implementing string notations.</p>
1313
<h3>Constructors</h3>
1414
<table>
@@ -71,8 +71,7 @@ <h4><a href="to-string.html">toString</a></h4>
7171
<h4><a href="transform-part-after-parse.html">transformPartAfterParse</a></h4>
7272
</td>
7373
<td>
74-
<p>Transforms a parsed part after it has been read. The default implementation is to convert the part to lowercase to discard possibly
75-
wrong case information.</p>
74+
<p>Transforms a parsed part after it has been read. The default implementation does not change the part.</p>
7675
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">transformPartAfterParse</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$transformPartAfterParse(kotlin.Int, kotlin.String)/index">index</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$transformPartAfterParse(kotlin.Int, kotlin.String)/part">part</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code></td>
7776
</tr>
7877
<tr>
@@ -93,18 +92,29 @@ <h3>Inheritors</h3>
9392
<h4><a href="../-java-member-name/index.html">JavaMemberName</a></h4>
9493
</td>
9594
<td>
96-
<p>A notation for java member names. This notation is like <a href="../-lower-camel-case/index.html">LowerCamelCase</a>, but will drop any character that is not allowed in a Java
97-
identifier when <a href="../-string-notation/print.html">printing</a>.</p>
95+
<p>A notation for java member names. This notation is like <a href="../-lower-camel-case/index.html">LowerCamelCase</a>, but when <a href="../-string-notation/print.html">printing</a>, it will drop any
96+
character that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
9897
<code><span class="keyword">object </span><span class="identifier">JavaMemberName</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">BaseStringNotation</span></a></code></td>
9998
</tr>
10099
<tr>
101100
<td>
102-
<h4><a href="../-java-type-name/index.html">JavaTypeName</a></h4>
101+
<h4><a href="../-java-package-name/index.html">JavaPackageName</a></h4>
103102
</td>
104103
<td>
105-
<p>A notation for java type names. This notation is like <a href="../-upper-camel-case/index.html">UpperCamelCase</a>, but will drop any character that is not allowed in a Java
106-
identifier when <a href="../-string-notation/print.html">printing</a>.</p>
107-
<code><span class="keyword">object </span><span class="identifier">JavaTypeName</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">BaseStringNotation</span></a></code></td>
104+
<p>A notation for whole java packages. When <a href="../-string-notation/print.html">printing</a> parts, it will drop any character that is not allowed in a Java
105+
identifier. If the result is a Java keyword, <code>_</code> will be appended to it.</p>
106+
<code><span class="keyword">object </span><span class="identifier">JavaPackageName</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">BaseStringNotation</span></a></code></td>
107+
</tr>
108+
<tr>
109+
<td>
110+
<h4><a href="../-java-package-part/index.html">JavaPackagePart</a></h4>
111+
</td>
112+
<td>
113+
<p>A notation for java package parts. When <a href="../-string-notation/print.html">printing</a>, it simply concatenates all word parts and drops any character
114+
that is not allowed in a Java identifier. If the result is a Java keyword, <code>_</code> will be appended to it. When
115+
<a href="../-string-notation/parse.html">parsing</a>, the notation will recognise word parts both in the <a href="../-lower-camel-case/index.html">LowerCamelCase</a> and the <a href="../-snake-case/index.html">SnakeCase</a> notation.
116+
However, neither notation is conventional and parsing will usually yield only one word part on real-world inputs.</p>
117+
<code><span class="keyword">object </span><span class="identifier">JavaPackagePart</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="./index.html"><span class="identifier">BaseStringNotation</span></a></code></td>
108118
</tr>
109119
<tr>
110120
<td>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/parse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>parse</h1>
1111
<a name="de.joshuagleitze.stringnotation.BaseStringNotation$parse(kotlin.String)"></a>
12-
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">parse</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$parse(kotlin.String)/sourceString">sourceString</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-word/index.html"><span class="identifier">Word</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L17">(source)</a>
12+
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">parse</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$parse(kotlin.String)/sourceString">sourceString</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="../-word/index.html"><span class="identifier">Word</span></a></code>
1313
<p>Transforms an input string that is in <code>this</code> notation into a notation-agnostic <a href="../-word/index.html">Word</a>.</p>
1414
</BODY>
1515
</HTML>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/print-before-inner-part.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>printBeforeInnerPart</h1>
1111
<a name="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforeInnerPart(kotlin.Int, kotlin.String)"></a>
12-
<code><span class="keyword">protected</span> <span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">printBeforeInnerPart</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforeInnerPart(kotlin.Int, kotlin.String)/index">index</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforeInnerPart(kotlin.Int, kotlin.String)/part">part</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L33">(source)</a>
12+
<code><span class="keyword">protected</span> <span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">printBeforeInnerPart</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforeInnerPart(kotlin.Int, kotlin.String)/index">index</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforeInnerPart(kotlin.Int, kotlin.String)/part">part</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
1313
<p>Allows to print characters in front of parts that are not the first part. The default implementation prints nothing.</p>
1414
</BODY>
1515
</HTML>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/print-before-part.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>printBeforePart</h1>
1111
<a name="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforePart(kotlin.Int, kotlin.String)"></a>
12-
<code><span class="keyword">protected</span> <span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">printBeforePart</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforePart(kotlin.Int, kotlin.String)/index">index</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforePart(kotlin.Int, kotlin.String)/part">part</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L28">(source)</a>
12+
<code><span class="keyword">protected</span> <span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">printBeforePart</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforePart(kotlin.Int, kotlin.String)/index">index</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$printBeforePart(kotlin.Int, kotlin.String)/part">part</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
1313
<p>Allows to print characters in front of parts. The default implementation will print nothing before the first part and delegate to
1414
<a href="print-before-inner-part.html">printBeforeInnerPart</a> for the remaining parts.</p>
1515
</BODY>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/print.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<br/>
1010
<h1>print</h1>
1111
<a name="de.joshuagleitze.stringnotation.BaseStringNotation$print(de.joshuagleitze.stringnotation.Word)"></a>
12-
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">print</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$print(de.joshuagleitze.stringnotation.Word)/word">word</span><span class="symbol">:</span>&nbsp;<a href="../-word/index.html"><span class="identifier">Word</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L35">(source)</a>
12+
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">print</span><span class="symbol">(</span><span class="identifier" id="de.joshuagleitze.stringnotation.BaseStringNotation$print(de.joshuagleitze.stringnotation.Word)/word">word</span><span class="symbol">:</span>&nbsp;<a href="../-word/index.html"><span class="identifier">Word</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
1313
<p>Transforms a <a href="../-word/index.html">Word</a> into a string that is formatted according to <code>this</code> notation.</p>
1414
</BODY>
1515
</HTML>

string-notation/de.joshuagleitze.stringnotation/-base-string-notation/to-string.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
<br/>
1010
<h1>toString</h1>
1111
<a name="de.joshuagleitze.stringnotation.BaseStringNotation$toString()"></a>
12-
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code> <a href="https://github.com/jGleitz/string-notation/blob/master/src/main/kotlin/BaseStringNotation.kt#L40">(source)</a>
12+
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">toString</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
1313
</BODY>
1414
</HTML>

0 commit comments

Comments
 (0)