public static ConditionEvaluator jit(Condition condition, ClassLoader classLoader) {
ClassGenerator generator = new ClassGenerator(getUniqueClassName(), classLoader)
.setInterfaces(ConditionEvaluator.class)
.addDefaultConstructor();
generator.addMethod(ACC_PUBLIC, "evaluate", generator.methodDescr(boolean.class, Object.class, Map.class), new EvaluateMethodGenerator(condition));
return generator.newInstance();
}
private static String getUniqueClassName() {