Searched refs:codeWriter (Results 1 – 8 of 8) sorted by relevance
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | TypeSpec.java | 186 void emit(CodeWriter codeWriter, String enumName, Set<Modifier> implicitModifiers) in emit() argument 190 int previousStatementLine = codeWriter.statementLine; in emit() 191 codeWriter.statementLine = -1; in emit() 195 codeWriter.emitJavadoc(javadoc); in emit() 196 codeWriter.emitAnnotations(annotations, false); in emit() 197 codeWriter.emit("$L", enumName); in emit() 199 codeWriter.emit("("); in emit() 200 codeWriter.emit(anonymousTypeArguments); in emit() 201 codeWriter.emit(")"); in emit() 206 codeWriter.emit(" {\n"); in emit() [all …]
|
D | AnnotationSpec.java | 53 void emit(CodeWriter codeWriter, boolean inline) throws IOException { in emit() argument 58 codeWriter.emit("@$T", type); in emit() 61 codeWriter.emit("@$T(", type); in emit() 62 emitAnnotationValues(codeWriter, whitespace, memberSeparator, members.get("value")); in emit() 63 codeWriter.emit(")"); in emit() 73 codeWriter.emit("@$T(" + whitespace, type); in emit() 74 codeWriter.indent(2); in emit() 78 codeWriter.emit("$L = ", entry.getKey()); in emit() 79 emitAnnotationValues(codeWriter, whitespace, memberSeparator, entry.getValue()); in emit() 80 if (i.hasNext()) codeWriter.emit(memberSeparator); in emit() [all …]
|
D | MethodSpec.java | 83 void emit(CodeWriter codeWriter, String enclosingName, Set<Modifier> implicitModifiers) in emit() argument 85 codeWriter.emitJavadoc(javadocWithParameters()); in emit() 86 codeWriter.emitAnnotations(annotations, false); in emit() 87 codeWriter.emitModifiers(modifiers, implicitModifiers); in emit() 90 codeWriter.emitTypeVariables(typeVariables); in emit() 91 codeWriter.emit(" "); in emit() 95 codeWriter.emit("$L($Z", enclosingName); in emit() 97 codeWriter.emit("$T $L($Z", returnType, name); in emit() 103 if (!firstParameter) codeWriter.emit(",").emitWrappingSpace(); in emit() 104 parameter.emit(codeWriter, !i.hasNext() && varargs); in emit() [all …]
|
D | FieldSpec.java | 55 void emit(CodeWriter codeWriter, Set<Modifier> implicitModifiers) throws IOException { in emit() argument 56 codeWriter.emitJavadoc(javadoc); in emit() 57 codeWriter.emitAnnotations(annotations, false); in emit() 58 codeWriter.emitModifiers(modifiers, implicitModifiers); in emit() 59 codeWriter.emit("$T $L", type, name); in emit() 61 codeWriter.emit(" = "); in emit() 62 codeWriter.emit(initializer); in emit() 64 codeWriter.emit(";\n"); in emit() 81 CodeWriter codeWriter = new CodeWriter(out); in toString() local 82 emit(codeWriter, Collections.emptySet()); in toString()
|
D | JavaFile.java | 99 CodeWriter codeWriter in writeTo() local 101 emit(codeWriter); in writeTo() 182 private void emit(CodeWriter codeWriter) throws IOException { in emit() argument 183 codeWriter.pushPackage(packageName); in emit() 186 codeWriter.emitComment(fileComment); in emit() 190 codeWriter.emit("package $L;\n", packageName); in emit() 191 codeWriter.emit("\n"); in emit() 196 codeWriter.emit("import static $L;\n", signature); in emit() 198 codeWriter.emit("\n"); in emit() 202 for (ClassName className : new TreeSet<>(codeWriter.importedTypes().values())) { in emit() [all …]
|
D | ParameterSpec.java | 53 void emit(CodeWriter codeWriter, boolean varargs) throws IOException { in emit() argument 54 codeWriter.emitAnnotations(annotations, true); in emit() 55 codeWriter.emitModifiers(modifiers); in emit() 57 TypeName.asArray(type).emit(codeWriter, true); in emit() 59 type.emit(codeWriter); in emit() 61 codeWriter.emit(" $L", name); in emit() 78 CodeWriter codeWriter = new CodeWriter(out); in toString() local 79 emit(codeWriter, false); in toString()
|
D | TypeName.java | 211 CodeWriter codeWriter = new CodeWriter(resultBuilder); in toString() local 212 emit(codeWriter); in toString()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
D | DexWriter.java | 870 DexDataWriter codeWriter = new DexDataWriter(temp, 0); 914 codeWriter, ehBuf, methodKey, tryBlocks, instructions, debugItemOffset); 929 codeWriter.close();
|