public static Iterable<ClassByteCode> classOf(FreudSource source) {
if (File.class.equals(source.getType())) {
return new AnalysedObjects<File, ClassByteCode>(new AsmClassByteCodeFromFileCreator(), source.getSources());
}
if (String.class.equals(source.getType())) {
return new AnalysedObjects<String, ClassByteCode>(new AsmClassByteCodeFromNameCreator(), source.getSources());
}
throw new UnsupportedOperationException("Unsupported conversion " + source.getType() + " to ClassByteCode");
}