public void generateResources(EmitContext context, ModelDeclaration model) throws IOException {
if (isTarget(model) == false) {
return;
}
checkPropertyType(model);
EmitContext next = new EmitContext(
context.getSemantics(),
context.getConfiguration(),
model,
CATEGORY_STREAM,
"{0}StreamSupport");
LOG.debug("Generating stream support for {}",
context.getQualifiedTypeName().toNameString());
Generator.emit(next, model);
LOG.debug("Generated stream support for {}: {}",
context.getQualifiedTypeName().toNameString(),
next.getQualifiedTypeName().toNameString());
}