public String createText() { StringBuilder answer = new StringBuilder(); final ClassFileFactory factory = getFactory(); List<String> files = factory.files(); for (String file : files) { // if (!file.startsWith("std/")) { answer.append("@").append(file).append('\n'); answer.append(factory.asText(file)); // } } return answer.toString(); }
public ClassBuilder forClassImplementation(ClassDescriptor aClass) { return factory.newVisitor( typeMapper.mapType(aClass.getDefaultType(), OwnerKind.IMPLEMENTATION).getInternalName() + ".class"); }
public NamespaceCodegen forNamespace(JetFile namespace) { return factory.forNamespace(namespace); }
public Pair<String, ClassBuilder> forAnonymousSubclass(JetExpression expression) { String className = typeMapper.getClosureAnnotator().classNameForAnonymousClass(expression); return Pair.create(className, factory.forAnonymousSubclass(className)); }