public class CodeGenUtil2
extends java.lang.Object
Constructor and Description |
---|
CodeGenUtil2() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(java.lang.String name,
char separator,
java.lang.String prefix,
boolean includePrefix,
boolean includeLeadingSeparator)
Formats a name by parsing it into words separated by underscores and/or mixed-casing and then recombining them using the specified
separator.
|
static java.util.Set<java.lang.String> |
getJavaDefaultTypes()
Returns the short names of the primitives and types in java.lang (i.e. those that don't need qualification).
|
static boolean |
isJavaDefaultType(java.lang.String s)
Tests whether the given string is the name of a primitive or java.lang type.
|
static boolean |
isJavaLangType(java.lang.String s)
Tests whether the given string is the name of a java.lang type.
|
static java.util.List<java.lang.String> |
parseName(java.lang.String sourceName,
char separator)
This method breaks sourceName into words delimited by separator and/or mixed-case naming.
|
public static boolean isJavaLangType(java.lang.String s)
public static boolean isJavaDefaultType(java.lang.String s)
public static java.lang.String format(java.lang.String name, char separator, java.lang.String prefix, boolean includePrefix, boolean includeLeadingSeparator)
public static java.util.List<java.lang.String> parseName(java.lang.String sourceName, char separator)
public static java.util.Set<java.lang.String> getJavaDefaultTypes()