|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.generator.GeneratorUtility
This class contains utility helper methods used by the code generators.
Method Summary | |
static String |
capitalizeVariableName(String variableName)
Capitalize the given variable name. |
static String |
convertPackageToPath(String packageName)
Convert the package name to a relative path name that can be used to create a file. |
static List |
convertStringListToTypeList(List stringList)
Convert a list (possibly) containing String objects to
a list containing JavaType objects. |
static String |
convertVariableToParameter(String variableName)
Convert the variable name to a name that can be used as a formal parameter name. |
static int |
countLines(String multiLineText)
Return the number of lines in the given multi-line text string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String capitalizeVariableName(String variableName)
null
or has zero length,
the unmodified variable name is returned.
variableName
- The variable name to capitalize.
public static String convertVariableToParameter(String variableName)
variableName
- The variable name to convert.
public static String convertPackageToPath(String packageName)
file.separator
is used.
packageName
- The package name to convert.
public static List convertStringListToTypeList(List stringList)
String
objects to
a list containing JavaType
objects.
stringList
- The list of strings.
public static int countLines(String multiLineText)
line.separator
is used to distinguish
lines. Basically, answer how many tokens are available if the string
where to be tokenized with a StringTokenizer
.
multiLineText
- The text string to parse.
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |