public final class HelperValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
getFirstDeterminingEqualsCharPosition(String part) |
static void |
checkHash(Class<?> helperClazz,
HelperDefinition definition,
int hashSize) |
static void |
checkParams(Class<?> helperClazz,
HelperDefinition definition,
int paramSize) |
static void |
checkType(Class<?> helperClazz,
HelperDefinition definition,
MustacheTagType... allowedTypes) |
static Iterator<String> |
splitHelperName(String name,
Segment segment)
Extracts parts from an input string.
|
public static void checkParams(Class<?> helperClazz, HelperDefinition definition, int paramSize)
helperClazz - definition - paramSize - MustacheException - If the helper tag paramspublic static void checkType(Class<?> helperClazz, HelperDefinition definition, MustacheTagType... allowedTypes)
helperClazz - definition - allowedTypes - MustacheException - If the helper tag type does not match any one of the
specified typespublic static void checkHash(Class<?> helperClazz, HelperDefinition definition, int hashSize)
helperClazz - definition - hashSize - MustacheException - If the helper tag params@Internal public static Iterator<String> splitHelperName(String name, Segment segment)
name - segment - MustacheException - If a compilation problem occurespublic static int getFirstDeterminingEqualsCharPosition(String part)
part - -1 if no such char is foundCopyright © 2015. All Rights Reserved.