(startWithUpper: boolean, upperUnderscore: boolean, original: string)
| 151 | // just capitalize and concatenate. |
| 152 | // https://stackoverflow.com/questions/8277355/naming-convention-for-upper-case-abbreviations |
| 153 | function javaNameStyle(startWithUpper: boolean, upperUnderscore: boolean, original: string): string { |
| 154 | const words = splitIntoWords(original); |
| 155 | return combineWords( |
| 156 | words, |
| 157 | legalizeName, |
| 158 | upperUnderscore ? allUpperWordStyle : startWithUpper ? firstUpperWordStyle : allLowerWordStyle, |
| 159 | upperUnderscore ? allUpperWordStyle : firstUpperWordStyle, |
| 160 | upperUnderscore || startWithUpper ? allUpperWordStyle : allLowerWordStyle, |
| 161 | allUpperWordStyle, |
| 162 | upperUnderscore ? "_" : "", |
| 163 | isStartCharacter |
| 164 | ); |
| 165 | } |
| 166 | |
| 167 | class JavaRenderer extends ConvenienceRenderer { |
| 168 | constructor(graph: TypeGraph, private readonly _packageName: string, private readonly _justTypes: boolean) { |
no test coverage detected
searching dependent graphs…