class JexlASTHelper {

    public static ASTReference normalizeLiteral(JexlNode literal, Type<?> normalizer) throws NormalizationException {
        String normalizedImg = normalizer.normalize(literal.image);
        ASTStringLiteral normalizedLiteral = new ASTStringLiteral(ParserTreeConstants.JJTSTRINGLITERAL);
        normalizedLiteral.image = normalizedImg;
        return JexlNodes.makeRef(normalizedLiteral);
    }

    private  JexlASTHelper();

}