Lines Matching refs:Write

36   Write(CodeWriter::ForString(&str).get());  in ToString()
41 to->Write("%s", comment.c_str()); in WriteComment()
42 if (!comment.empty() && comment.back() != '\n') to->Write("\n"); in WriteComment()
49 to->Write("@Override "); in WriteModifiers()
53 to->Write("public "); in WriteModifiers()
55 to->Write("private "); in WriteModifiers()
57 to->Write("protected "); in WriteModifiers()
61 to->Write("static "); in WriteModifiers()
65 to->Write("final "); in WriteModifiers()
69 to->Write("abstract "); in WriteModifiers()
76 arguments[i]->Write(to); in WriteArgumentList()
78 to->Write(", "); in WriteArgumentList()
85 void Field::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Field
88 to->Write("%s\n", a.c_str()); in Write()
94 to->Write(" = %s", this->value.c_str()); in Write()
96 to->Write(";\n"); in Write()
101 void LiteralExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::LiteralExpression
102 to->Write("%s", this->value.c_str()); in Write()
107 void StringLiteralExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::StringLiteralExpression
108 to->Write("\"%s\"", this->value.c_str()); in Write()
115 to->Write("%s ", a.c_str()); in WriteDeclaration()
117 to->Write("%s %s", this->type.c_str(), this->name.c_str()); in WriteDeclaration()
120 void Variable::Write(CodeWriter* to) const { to->Write("%s", name.c_str()); } in Write() function in android::aidl::java::Variable
127 void FieldVariable::Write(CodeWriter* to) const { in Write() function in android::aidl::java::FieldVariable
129 overloaded{[&](std::shared_ptr<Expression> e) { e->Write(to); }, in Write()
130 [&](const std::string& s) { to->Write("%s", s.c_str()); }, [](std::monostate) {}}, in Write()
132 to->Write(".%s", name.c_str()); in Write()
137 void LiteralStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::LiteralStatement
138 to->Write("%s", value_.c_str()); in Write()
141 void StatementBlock::Write(CodeWriter* to) const { in Write() function in android::aidl::java::StatementBlock
142 to->Write("{\n"); in Write()
146 this->statements[i]->Write(to); in Write()
149 to->Write("}\n"); in Write()
162 void ExpressionStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::ExpressionStatement
163 this->expression->Write(to); in Write()
164 to->Write(";\n"); in Write()
173 void Assignment::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Assignment
174 this->lvalue->Write(to); in Write()
175 to->Write(" = "); in Write()
177 to->Write("(%s)", this->cast->c_str()); in Write()
179 this->rvalue->Write(to); in Write()
199 void MethodCall::Write(CodeWriter* to) const { in Write() function in android::aidl::java::MethodCall
202 e->Write(to); in Write()
203 to->Write("."); in Write()
205 [&](const std::string& s) { to->Write("%s.", s.c_str()); }, [](std::monostate) {}}, in Write()
207 to->Write("%s(", this->name.c_str()); in Write()
209 to->Write(")"); in Write()
216 void Comparison::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Comparison
217 to->Write("("); in Write()
218 this->lvalue->Write(to); in Write()
219 to->Write("%s", this->op.c_str()); in Write()
220 this->rvalue->Write(to); in Write()
221 to->Write(")"); in Write()
230 void NewExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::NewExpression
231 to->Write("new %s(", this->instantiableName.c_str()); in Write()
233 to->Write(")"); in Write()
238 void Cast::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Cast
239 to->Write("((%s)", this->type.c_str()); in Write()
240 expression->Write(to); in Write()
241 to->Write(")"); in Write()
249 void VariableDeclaration::Write(CodeWriter* to) const { in Write() function in android::aidl::java::VariableDeclaration
252 to->Write(" = "); in Write()
253 this->rvalue->Write(to); in Write()
255 to->Write(";\n"); in Write()
258 void IfStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::IfStatement
260 to->Write("if ("); in Write()
261 this->expression->Write(to); in Write()
262 to->Write(") "); in Write()
264 this->statements->Write(to); in Write()
266 to->Write("else "); in Write()
267 this->elseif->Write(to); in Write()
273 void ReturnStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::ReturnStatement
274 to->Write("return "); in Write()
275 this->expression->Write(to); in Write()
276 to->Write(";\n"); in Write()
279 void BreakStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::BreakStatement
280 to->Write("break;\n"); in Write()
283 void TryStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::TryStatement
284 to->Write("try "); in Write()
285 this->statements->Write(to); in Write()
288 void FinallyStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::FinallyStatement
289 to->Write("finally "); in Write()
290 this->statements->Write(to); in Write()
295 void Case::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Case
301 to->Write("case %s:\n", s.c_str()); in Write()
303 to->Write("default:\n"); in Write()
307 to->Write("default:\n"); in Write()
309 statements->Write(to); in Write()
314 void SwitchStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::SwitchStatement
315 to->Write("switch ("); in Write()
316 this->expression->Write(to); in Write()
317 to->Write(")\n{\n"); in Write()
321 this->cases[i]->Write(to); in Write()
324 to->Write("}\n"); in Write()
327 void Method::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Method
333 to->Write("%s\n", a.c_str()); in Write()
340 to->Write("%s ", this->returnType->c_str()); in Write()
343 to->Write("%s(", this->name.c_str()); in Write()
349 to->Write(", "); in Write()
353 to->Write(")"); in Write()
358 to->Write(" throws "); in Write()
360 to->Write(", "); in Write()
362 to->Write("%s", this->exceptions[i].c_str()); in Write()
366 to->Write(";\n"); in Write()
368 to->Write("\n"); in Write()
369 this->statements->Write(to); in Write()
373 void LiteralClassElement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::LiteralClassElement
374 to->Write("%s", element.c_str()); in Write()
377 void Class::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Class
382 to->Write("%s\n", a.c_str()); in Write()
388 to->Write("class "); in Write()
390 to->Write("interface "); in Write()
399 to->Write("%s", name.c_str()); in Write()
402 to->Write(" extends %s", this->extends->c_str()); in Write()
408 to->Write(" implements"); in Write()
410 to->Write(" extends"); in Write()
413 to->Write(" %s", this->interfaces[i].c_str()); in Write()
417 to->Write("\n"); in Write()
418 to->Write("{\n"); in Write()
423 this->elements[i]->Write(to); in Write()
427 to->Write("}\n"); in Write()