scope.startLine(" " + resultRef + " = false;\n");
scope.startLine("}\n");
}
});
}
JsonSubtypeConditionCustom customAnn = m.getAnnotation(JsonSubtypeConditionCustom.class);
if (customAnn != null) {
Class<? extends JsonValueCondition<?>> condition = customAnn.condition();
// We do not know exact type of condition. But we also do not care about result type
// in 'constraint'. Compiler cannot catch the wildcard here, so we use an assumed type.
Class<? extends JsonValueCondition<Void>> assumedTypeCondition =
(Class<? extends JsonValueCondition<Void>>) customAnn.condition();
final CustomConditionWrapper<?> constraint =
CustomConditionWrapper.create(assumedTypeCondition);
results.add(new FieldConditionLogic(true) {
@Override
boolean checkValue(boolean hasValue, Object unparsedValue, QuickParser<?> parser)