class ValidationAPI implements Serializable {

	public DiagnosticCollector<JavaFileObject> filterCompiler(Map<String, Class<?>> schemaFields) {
		String fields = "";
		CustomExpressionVisitor customExpressionVisitor = new CustomExpressionVisitor();
		customExpressionVisitor.visit(generateAntlrTree());
		for (String field : customExpressionVisitor.getFieldList()) {
			if (schemaFields.get(field) != null) {
				fields += ClassToDataTypeConversion.valueOf(schemaFields.get(field).getSimpleName()).getValue(field);
			}
		}

		return CompileUtils.javaCompile(fields, expr, packageNames, "boolean");

	}

	public  ValidationAPI(String expression, String propertiesFilePath);

}