string-notation / de.joshuagleitze.stringnotation / JavaMemberName

JavaMemberName

object JavaMemberName : BaseStringNotation

A notation for java member names. This notation is like LowerCamelCase, but when printing, it will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it.

Allowed characters are determined using Character.isJavaIdentifierStart and Character.isJavaIdentifierPart. Keywords are detected using SourceVersion.isKeyword.

Functions

print

Transforms a Word into a string that is formatted according to this notation.

fun print(word: Word): String

transformPartAfterParse

Transforms a parsed part after it has been read. The default implementation does not change the part.

fun transformPartAfterParse(index: Int, part: String): String