I have a concept behavior method with java.lang.Class return type.
What is the way to generate XXX.class.getName() when doing "to baseLanguage" generation?
If I try ReferenceMacro over Object: ->$[ Object ] .class.getName() I get "type java.lang.Class is not subtype of node<Classifier>" error (reference target is implemented by mere "node.getOutputClass()")
After a bit of reflection I realized "concept behaviours should not be used to return java objects". Am I right?
So, instead of returning java objects like "java.util.Map" from concept behaviours and trying to convert it back to template form in generator, either relevant node<...> should be returned from behaviour or template switch should be used.
Is it the case?
PS. It looks like ClassifierResolveUtils.resolveSpecialSyntax could be used to convert from "class name as string to node<Classifier> form", however it looks to be much easier to avoid that and use node<Classifier> in behaviour return type.