Home
last modified time | relevance | path

Searched refs:codeWriter (Results 1 – 8 of 8) sorted by relevance

/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeSpec.java170 void emit(CodeWriter codeWriter, String enumName, Set<Modifier> implicitModifiers) in emit() argument
174 int previousStatementLine = codeWriter.statementLine; in emit()
175 codeWriter.statementLine = -1; in emit()
179 codeWriter.emitJavadoc(javadoc); in emit()
180 codeWriter.emitAnnotations(annotations, false); in emit()
181 codeWriter.emit("$L", enumName); in emit()
183 codeWriter.emit("("); in emit()
184 codeWriter.emit(anonymousTypeArguments); in emit()
185 codeWriter.emit(")"); in emit()
190 codeWriter.emit(" {\n"); in emit()
[all …]
DAnnotationSpec.java53 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 …]
DMethodSpec.java83 void emit(CodeWriter codeWriter, String enclosingName, Set<Modifier> implicitModifiers) in emit() argument
85 codeWriter.emitJavadoc(javadoc); 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 …]
DJavaFile.java80 CodeWriter codeWriter = new CodeWriter(out, indent, suggestedImports, staticImports); in writeTo() local
81 emit(codeWriter); in writeTo()
126 private void emit(CodeWriter codeWriter) throws IOException { in emit() argument
127 codeWriter.pushPackage(packageName); in emit()
130 codeWriter.emitComment(fileComment); in emit()
134 codeWriter.emit("package $L;\n", packageName); in emit()
135 codeWriter.emit("\n"); in emit()
140 codeWriter.emit("import static $L;\n", signature); in emit()
142 codeWriter.emit("\n"); in emit()
146 for (ClassName className : new TreeSet<>(codeWriter.importedTypes().values())) { in emit()
[all …]
DFieldSpec.java55 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()
DParameterSpec.java50 void emit(CodeWriter codeWriter, boolean varargs) throws IOException { in emit() argument
51 codeWriter.emitAnnotations(annotations, true); in emit()
52 codeWriter.emitModifiers(modifiers); in emit()
54 TypeName.asArray(type).emit(codeWriter, true); in emit()
56 type.emit(codeWriter); in emit()
58 codeWriter.emit(" $L", name); in emit()
75 CodeWriter codeWriter = new CodeWriter(out); in toString() local
76 emit(codeWriter, false); in toString()
DTypeName.java211 CodeWriter codeWriter = new CodeWriter(resultBuilder); in toString() local
212 emit(codeWriter); in toString()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexWriter.java778 DexDataWriter codeWriter = new DexDataWriter(temp, 0);
822 codeWriter, ehBuf, methodKey, tryBlocks, instructions, debugItemOffset);
837 codeWriter.close();