Lines Matching refs:Write
33 to->Write("@Override "); in WriteModifiers()
37 to->Write("public "); in WriteModifiers()
39 to->Write("private "); in WriteModifiers()
41 to->Write("protected "); in WriteModifiers()
45 to->Write("static "); in WriteModifiers()
49 to->Write("final "); in WriteModifiers()
53 to->Write("abstract "); in WriteModifiers()
60 arguments[i]->Write(to); in WriteArgumentList()
62 to->Write(", "); in WriteArgumentList()
69 void Field::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Field
71 to->Write("%s\n", this->comment.c_str()); in Write()
74 to->Write("%s %s", this->variable->type->JavaType().c_str(), in Write()
77 to->Write(" = %s", this->value.c_str()); in Write()
79 to->Write(";\n"); in Write()
84 void LiteralExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::LiteralExpression
85 to->Write("%s", this->value.c_str()); in Write()
90 void StringLiteralExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::StringLiteralExpression
91 to->Write("\"%s\"", this->value.c_str()); in Write()
105 to->Write("%s%s %s", this->type->JavaType().c_str(), dim.c_str(), in WriteDeclaration()
109 void Variable::Write(CodeWriter* to) const { to->Write("%s", name.c_str()); } in Write() function in android::aidl::java::Variable
117 void FieldVariable::Write(CodeWriter* to) const { in Write() function in android::aidl::java::FieldVariable
119 this->object->Write(to); in Write()
121 to->Write("%s", this->clazz->JavaType().c_str()); in Write()
123 to->Write(".%s", name.c_str()); in Write()
126 void StatementBlock::Write(CodeWriter* to) const { in Write() function in android::aidl::java::StatementBlock
127 to->Write("{\n"); in Write()
130 this->statements[i]->Write(to); in Write()
132 to->Write("}\n"); in Write()
145 void ExpressionStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::ExpressionStatement
146 this->expression->Write(to); in Write()
147 to->Write(";\n"); in Write()
156 void Assignment::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Assignment
157 this->lvalue->Write(to); in Write()
158 to->Write(" = "); in Write()
160 to->Write("(%s)", this->cast->JavaType().c_str()); in Write()
162 this->rvalue->Write(to); in Write()
201 void MethodCall::Write(CodeWriter* to) const { in Write() function in android::aidl::java::MethodCall
203 this->obj->Write(to); in Write()
204 to->Write("."); in Write()
206 to->Write("%s.", this->clazz->JavaType().c_str()); in Write()
208 to->Write("%s(", this->name.c_str()); in Write()
210 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()
240 void NewExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::NewExpression
241 to->Write("new %s(", this->type->InstantiableName().c_str()); in Write()
243 to->Write(")"); in Write()
249 void NewArrayExpression::Write(CodeWriter* to) const { in Write() function in android::aidl::java::NewArrayExpression
250 to->Write("new %s[", this->type->JavaType().c_str()); in Write()
251 size->Write(to); in Write()
252 to->Write("]"); in Write()
258 void Ternary::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Ternary
259 to->Write("(("); in Write()
260 this->condition->Write(to); in Write()
261 to->Write(")?("); in Write()
262 this->ifpart->Write(to); in Write()
263 to->Write("):("); in Write()
264 this->elsepart->Write(to); in Write()
265 to->Write("))"); in Write()
270 void Cast::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Cast
271 to->Write("((%s)", this->type->JavaType().c_str()); in Write()
272 expression->Write(to); in Write()
273 to->Write(")"); in Write()
282 void VariableDeclaration::Write(CodeWriter* to) const { in Write() function in android::aidl::java::VariableDeclaration
285 to->Write(" = "); in Write()
287 to->Write("(%s)", this->cast->JavaType().c_str()); in Write()
289 this->rvalue->Write(to); in Write()
291 to->Write(";\n"); in Write()
294 void IfStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::IfStatement
296 to->Write("if ("); in Write()
297 this->expression->Write(to); in Write()
298 to->Write(") "); in Write()
300 this->statements->Write(to); in Write()
302 to->Write("else "); in Write()
303 this->elseif->Write(to); in Write()
309 void ReturnStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::ReturnStatement
310 to->Write("return "); in Write()
311 this->expression->Write(to); in Write()
312 to->Write(";\n"); in Write()
315 void TryStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::TryStatement
316 to->Write("try "); in Write()
317 this->statements->Write(to); in Write()
323 void CatchStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::CatchStatement
324 to->Write("catch "); in Write()
326 to->Write("("); in Write()
328 to->Write(") "); in Write()
330 this->statements->Write(to); in Write()
333 void FinallyStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::FinallyStatement
334 to->Write("finally "); in Write()
335 this->statements->Write(to); in Write()
340 void Case::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Case
346 to->Write("case %s:\n", s.c_str()); in Write()
348 to->Write("default:\n"); in Write()
352 to->Write("default:\n"); in Write()
354 statements->Write(to); in Write()
359 void SwitchStatement::Write(CodeWriter* to) const { in Write() function in android::aidl::java::SwitchStatement
360 to->Write("switch ("); in Write()
361 this->expression->Write(to); in Write()
362 to->Write(")\n{\n"); in Write()
365 this->cases[i]->Write(to); in Write()
367 to->Write("}\n"); in Write()
370 void Break::Write(CodeWriter* to) const { to->Write("break;\n"); } in Write() function in android::aidl::java::Break
372 void Method::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Method
376 to->Write("%s\n", this->comment.c_str()); in Write()
387 to->Write("%s%s ", this->returnType->JavaType().c_str(), dim.c_str()); in Write()
390 to->Write("%s(", this->name.c_str()); in Write()
396 to->Write(", "); in Write()
400 to->Write(")"); in Write()
405 to->Write(" throws "); in Write()
407 to->Write(", "); in Write()
409 to->Write("%s", this->exceptions[i]->JavaType().c_str()); in Write()
413 to->Write(";\n"); in Write()
415 to->Write("\n"); in Write()
416 this->statements->Write(to); in Write()
420 void Constant::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Constant
422 to->Write("int %s = %d;\n", name.c_str(), value); in Write()
425 void Class::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Class
429 to->Write("%s\n", this->comment.c_str()); in Write()
435 to->Write("class "); in Write()
437 to->Write("interface "); in Write()
446 to->Write("%s", name.c_str()); in Write()
449 to->Write(" extends %s", this->extends->JavaType().c_str()); in Write()
455 to->Write(" implements"); in Write()
457 to->Write(" extends"); in Write()
460 to->Write(" %s", this->interfaces[i]->JavaType().c_str()); in Write()
464 to->Write("\n"); in Write()
465 to->Write("{\n"); in Write()
469 this->elements[i]->Write(to); in Write()
472 to->Write("}\n"); in Write()
499 void Document::Write(CodeWriter* to) const { in Write() function in android::aidl::java::Document
501 to->Write("%s\n", comment_.c_str()); in Write()
503 to->Write( in Write()
510 to->Write("package %s;\n", package_.c_str()); in Write()
514 clazz_->Write(to); in Write()