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