public final class HelperValidator extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkHash(Class<? extends Helper> helperClazz,
HelperDefinition definition,
int hashSize) |
static void |
checkHash(HelperDefinition definition,
BasicHelper helper) |
static void |
checkParams(Class<? extends Helper> helperClazz,
HelperDefinition definition,
int paramSize) |
static void |
checkType(Class<? extends Helper> helperClazz,
HelperDefinition definition,
MustacheTagType... allowedTypes) |
static MustacheException |
newValidationException(String msg,
Class<? extends Helper> helperClazz,
HelperDefinition definition) |
public static void checkParams(Class<? extends Helper> helperClazz, HelperDefinition definition, int paramSize)
helperClazz - definition - paramSize - MustacheException - If the helper expects more paramspublic static void checkType(Class<? extends Helper> 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<? extends Helper> helperClazz, HelperDefinition definition, int hashSize)
helperClazz - definition - hashSize - MustacheException - If the helper expects more hash entriespublic static void checkHash(HelperDefinition definition, BasicHelper helper)
definition - hashSize - checkHash(Class, HelperDefinition, int)public static MustacheException newValidationException(String msg, Class<? extends Helper> helperClazz, HelperDefinition definition)
Copyright © 2017. All rights reserved.