Home
last modified time | relevance | path

Searched refs:appendable (Results 1 – 25 of 45) sorted by relevance

12

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DEnumWriter.java57 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
65 writeAnnotations(appendable, context); in write()
66 writeModifiers(appendable).append("enum ").append(name.simpleName()); in write()
69 appendable.append(" implements "); in write()
70 implementedTypesIterator.next().write(appendable, context); in write()
72 appendable.append(", "); in write()
73 implementedTypesIterator.next().write(appendable, context); in write()
76 appendable.append(" {"); in write()
79 appendable.append('\n'); in write()
84 constantWriter.write(appendable, context); in write()
[all …]
DInterfaceWriter.java40 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
48 writeAnnotations(appendable, context); in write()
49 writeModifiers(appendable).append("interface ").append(name.simpleName()); in write()
51 appendable.append('<'); in write()
52 Joiner.on(", ").appendTo(appendable, typeVariables); in write()
53 appendable.append('>'); in write()
57 appendable.append(" extends "); in write()
58 implementedTypesIterator.next().write(appendable, context); in write()
60 appendable.append(", "); in write()
61 implementedTypesIterator.next().write(appendable, context); in write()
[all …]
DClassWriter.java89 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
97 writeAnnotations(appendable, context); in write()
98 writeModifiers(appendable).append("class ").append(name.simpleName()); in write()
99 Writables.join(", ", typeParameters, "<", ">", appendable, context); in write()
101 appendable.append(" extends "); in write()
102 superclass.get().write(appendable, context); in write()
104 Writables.join(", ", implementedTypes, " implements ", "", appendable, context); in write()
105 appendable.append(" {"); in write()
107 appendable.append('\n'); in write()
110 fieldWriter.write(new IndentingAppendable(appendable), context).append("\n"); in write()
[all …]
DMethodWriter.java93 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
94 writeAnnotations(appendable, context); in write()
95 writeModifiers(appendable); in write()
96 Writables.join(", ", typeParameters, "<", "> ", appendable, context); in write()
97 returnType.write(appendable, context); in write()
98 appendable.append(' ').append(name).append('('); in write()
99 Writables.join(", ", parameterWriters.values(), appendable, context); in write()
100 appendable.append(")"); in write()
102 appendable.append(" {"); in write()
103 body.get().write(new IndentingAppendable(appendable), context); in write()
[all …]
DWritables.java31 Appendable appendable, Context context) throws IOException { in join() argument
34 appendable.append(prefix); in join()
35 iter.next().write(appendable, context); in join()
37 appendable.append(delimiter); in join()
38 iter.next().write(appendable, context); in join()
40 appendable.append(suffix); in join()
46 Appendable appendable, Context context) throws IOException { in join() argument
47 join(delimiter, writables, "", "", appendable, context); in join()
53 public Appendable write(Appendable appendable, Context context) throws IOException { in toStringWritable()
54 return appendable.append(object.toString()); in toStringWritable()
DAnnotationWriter.java57 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
58 appendable.append('@'); in write()
59 annotationName.write(appendable, context); in write()
61 appendable.append('('); in write()
65 appendable.append(onlyEntry.getKey()).append(" = "); in write()
67 onlyEntry.getValue().write(appendable, context); in write()
69 appendable.append(')'); in write()
71 return appendable; in write()
DWildcardName.java55 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
56 appendable.append('?'); in write()
58 appendable.append(" extends "); in write()
59 extendsBound.get().write(appendable, context); in write()
62 appendable.append(" super "); in write()
63 superBound.get().write(appendable, context); in write()
65 return appendable; in write()
DParameterizedTypeName.java56 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
57 appendable.append(context.sourceReferenceForClassName(type)); in write()
60 appendable.append('<'); in write()
61 parameterIterator.next().write(appendable, context); in write()
63 appendable.append(", "); in write()
64 parameterIterator.next().write(appendable, context); in write()
66 appendable.append('>'); in write()
67 return appendable; in write()
DModifiable.java55 Appendable writeModifiers(Appendable appendable) throws IOException { in writeModifiers() argument
57 appendable.append(modifier.toString()).append(' '); in writeModifiers()
59 return appendable; in writeModifiers()
62 Appendable writeAnnotations(Appendable appendable, Context context) throws IOException { in writeAnnotations() argument
64 annotationWriter.write(appendable, context).append('\n'); in writeAnnotations()
66 return appendable; in writeAnnotations()
DFieldWriter.java43 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
44 super.write(appendable, context); in write()
46 appendable.append(" = "); in write()
47 initializer.get().write(appendable, context); in write()
49 appendable.append(';'); in write()
50 return appendable; in write()
DConstructorWriter.java88 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
89 writeAnnotations(appendable, context); in write()
90 writeModifiers(appendable).append(name).append('('); in write()
91 Writables.join(", ", parameterWriters.values(), appendable, context); in write()
92 appendable.append(") {"); in write()
93 blockWriter.write(new IndentingAppendable(appendable), context); in write()
94 return appendable.append("}\n"); in write()
DTypeVariableName.java55 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
56 appendable.append(name); in write()
58 appendable.append(" extends "); in write()
60 iter.next().write(appendable, context); in write()
62 appendable.append(" & "); in write()
63 iter.next().write(appendable, context); in write()
66 return appendable; in write()
DVariableWriter.java43 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
44 writeAnnotations(appendable, context); in write()
45 writeModifiers(appendable); in write()
46 type.write(appendable, context); in write()
47 return appendable.append(' ').append(name); in write()
DSnippet.java69 public Appendable write(Appendable appendable, Context context) throws IOException {
80 Formatter formatter = new Formatter(appendable);
83 return appendable;
110 public Appendable write(Appendable appendable, Context context) throws IOException {
114 firstSnippet.write(appendable, context);
117 appendable.append(joinToken);
118 nextSnippet.write(appendable, context);
121 return appendable;
DBlockWriter.java47 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
49 appendable.append('\n'); in write()
50 snippet.write(appendable, context); in write()
52 return appendable.append('\n'); in write()
DJavaWriter.java104 public <A extends Appendable> A write(A appendable) throws IOException { in write() argument
106 appendable.append("package ").append(packageName).append(";\n\n"); in write()
155 appendable.append("import ").append(importCandidate.get().canonicalName()).append(";\n"); in write()
161 appendable.append('\n'); in write()
168 typeWriter.write(appendable, context.createSubcontext(typeNames)).append('\n'); in write()
170 return appendable; in write()
DNullName.java31 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
32 return appendable.append("null"); in write()
DVoidName.java36 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
37 return appendable.append("void"); in write()
DArrayTypeName.java34 public Appendable write(Appendable appendable, Context context) throws IOException { in write() argument
35 return componentType.write(appendable, context).append("[]"); in write()
/external/guava/guava/src/com/google/common/base/
DJoiner.java95 public <A extends Appendable> A appendTo(A appendable, Iterable<?> parts) throws IOException { in appendTo() argument
96 return appendTo(appendable, parts.iterator()); in appendTo()
105 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo() argument
106 checkNotNull(appendable); in appendTo()
108 appendable.append(toString(parts.next())); in appendTo()
110 appendable.append(separator); in appendTo()
111 appendable.append(toString(parts.next())); in appendTo()
114 return appendable; in appendTo()
121 public final <A extends Appendable> A appendTo(A appendable, Object[] parts) throws IOException { in appendTo() argument
122 return appendTo(appendable, Arrays.asList(parts)); in appendTo()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DFormattedNumberRange.java68 public <A extends Appendable> A appendTo(A appendable) { in appendTo() argument
70 appendable.append(string); in appendTo()
75 return appendable; in appendTo()
DFormattedNumber.java62 public <A extends Appendable> A appendTo(A appendable) { in appendTo() argument
64 appendable.append(nsb); in appendTo()
69 return appendable; in appendTo()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DFormattedNumberRange.java67 public <A extends Appendable> A appendTo(A appendable) { in appendTo() argument
69 appendable.append(string); in appendTo()
74 return appendable; in appendTo()
DFormattedNumber.java61 public <A extends Appendable> A appendTo(A appendable) { in appendTo() argument
63 appendable.append(nsb); in appendTo()
68 return appendable; in appendTo()
/external/icu/icu4c/source/i18n/
Ddecimfmt.cpp436 auto appendable = UnicodeStringAppendable(appendTo); in format() local
437 output.appendTo(appendable); in format()
448 auto appendable = UnicodeStringAppendable(appendTo); in format() local
449 output.appendTo(appendable); in format()
461 auto appendable = UnicodeStringAppendable(appendTo); in format() local
462 output.appendTo(appendable); in format()
488 auto appendable = UnicodeStringAppendable(appendTo); in format() local
489 output.appendTo(appendable); in format()
500 auto appendable = UnicodeStringAppendable(appendTo); in format() local
501 output.appendTo(appendable); in format()
[all …]

12