use of org.stjs.javascript.annotation.STJSBridge in project st-js by st-js.
the class BridgeClass method getJavascriptFiles.
/**
* {@inheritDoc}
*/
@Override
public List<URI> getJavascriptFiles() {
STJSBridge bridgeAnnotation = ClassUtils.getAnnotation(clazz, STJSBridge.class);
if (!hasSourceAnnotation(bridgeAnnotation)) {
return Collections.emptyList();
}
List<URI> files = new ArrayList<URI>();
for (String src : bridgeAnnotation.sources()) {
try {
if (src.length() > 0) {
files.add(new URI(src));
}
} catch (URISyntaxException e) {
throw new JavascriptClassGenerationException(getJavaClassName(), e);
}
}
return files;
}
Aggregations