public final class GeneratorExtensions
extends java.lang.Object
GeneratorExtensions.| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
newConstantsFromStringList(java.util.List<java.lang.String> data,
java.lang.String prefix,
java.lang.String suffix,
boolean withQuotation)
Creates a String list with the String constants from the given String list.
|
static java.lang.String |
newStaticArrayVariable(java.lang.String arrayName,
java.util.List<java.lang.String> data)
Creates a String for a constant Stringarray to be inserted in java-file.
|
public static java.util.List<java.lang.String> newConstantsFromStringList(java.util.List<java.lang.String> data,
java.lang.String prefix,
java.lang.String suffix,
boolean withQuotation)
data - The data from what to create the contant strings.prefix - If the constant name needs a prefix.suffix - If the constant name needs a suffix.withQuotation - If the strings in the list have already quotation marks then true.public static java.lang.String newStaticArrayVariable(java.lang.String arrayName,
java.util.List<java.lang.String> data)
arrayName - The name from the array.data - The data what to insert in the generated array.