Exemplo n.º 1
0
  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();
  }
Exemplo n.º 2
0
 public ClassBuilder forClassImplementation(ClassDescriptor aClass) {
   return factory.newVisitor(
       typeMapper.mapType(aClass.getDefaultType(), OwnerKind.IMPLEMENTATION).getInternalName()
           + ".class");
 }
Exemplo n.º 3
0
 public NamespaceCodegen forNamespace(JetFile namespace) {
   return factory.forNamespace(namespace);
 }
Exemplo n.º 4
0
 public Pair<String, ClassBuilder> forAnonymousSubclass(JetExpression expression) {
   String className = typeMapper.getClosureAnnotator().classNameForAnonymousClass(expression);
   return Pair.create(className, factory.forAnonymousSubclass(className));
 }