public abstract class Skb_STUtils extends Object
| Constructor and Description |
|---|
Skb_STUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<String>> |
getMissingChunks(org.stringtemplate.v4.STGroup stg,
Map<String,List<String>> expectedChunks)
Returns a map of missing templates and/or missing arguments of templates.
|
static Set<String> |
getMissingChunksErrorMessages(String name,
Map<String,List<String>> missingChunks)
Returns a set of detailed error messages for missing chunks
|
static List<String> |
getMissingSTArguments(org.stringtemplate.v4.ST st,
List<String> expectedArguments)
Returns a list of arguments missing in the given StringTemplate.
|
static String |
getStgName(org.stringtemplate.v4.STGroup stg)
Returns the name of the STGroup.
|
public static final Map<String,List<String>> getMissingChunks(org.stringtemplate.v4.STGroup stg, Map<String,List<String>> expectedChunks)
stg - template group to be testedexpectedChunks - expected arguments - map key is the expected template name and the associated list are the expected argumentspublic static final List<String> getMissingSTArguments(org.stringtemplate.v4.ST st, List<String> expectedArguments)
st - template to be testedexpectedArguments - list of expected argumentspublic static final Set<String> getMissingChunksErrorMessages(String name, Map<String,List<String>> missingChunks)
name - name of the STGroup with missing templates (null is valid)missingChunks - list of missing chunkspublic static final String getStgName(org.stringtemplate.v4.STGroup stg)
stg - STGroupCopyright © 2010–2015. All rights reserved.