use of net.jangaroo.jooc.input.InputSource in project jangaroo-tools by CoreMedia.
the class ConfigClassRegistry method tryGenerateClass.
private void tryGenerateClass(String qname) {
ExmlSourceFile exmlSourceFile = getExmlSourceFilesByConfigClassName().get(qname);
if (exmlSourceFile != null) {
exmlSourceFile.generateConfigClass();
} else {
// is there an EXML file for the qname interpreted as a target class name?
InputSource exmlInputSource = sourcePathInputSource.getChild(JangarooParser.getInputSourceFileName(qname, sourcePathInputSource, Exmlc.EXML_SUFFIX));
if (exmlInputSource != null) {
String configClassName = computeConfigClassNameFromTargetClassName(qname);
exmlSourceFile = getExmlSourceFilesByConfigClassName().get(configClassName);
if (exmlSourceFile != null) {
exmlSourceFile.generateTargetClass();
}
}
}
}
Aggregations