Class JavaName
java.lang.Object
com.github.muehmar.gradle.openapi.generator.java.model.name.JavaName
Name for Java identifiers, like member, method or classnames. A
Any operation like
JavaName can be
constructed from any string and gets escaped to conform to the specification for identifiers.
Render the name as string with asString() or toString() will
result in the escaped string.Any operation like
prefix(String) is performed on the original string rather
than on the escaped string. This will produce identifiers which are as close as possible to the
original name, i.e. only do escaping if necessary. E.g. if a Java keyword is used as name and
gets prefixed, there is no longer the need to escape it.-
Method Summary
Modifier and TypeMethodDescriptionasString()static JavaNamestatic JavaNamefromString(String name) prefixedMethodName(String prefix) toString()