Home | History | Annotate | Download | only in aidl

Lines Matching refs:Write

33     to->Write("@Override ");
37 to->Write("public ");
39 to->Write("private ");
41 to->Write("protected ");
45 to->Write("static ");
49 to->Write("final ");
53 to->Write("abstract ");
60 arguments[i]->Write(to);
62 to->Write(", ");
69 void Field::Write(CodeWriter* to) const {
71 to->Write("%s\n", this->comment.c_str());
74 to->Write("%s %s", this->variable->type->JavaType().c_str(),
77 to->Write(" = %s", this->value.c_str());
79 to->Write(";\n");
84 void LiteralExpression::Write(CodeWriter* to) const {
85 to->Write("%s", this->value.c_str());
90 void StringLiteralExpression::Write(CodeWriter* to) const {
91 to->Write("\"%s\"", this->value.c_str());
105 to->Write("%s%s %s", this->type->JavaType().c_str(), dim.c_str(),
109 void Variable::Write(CodeWriter* to) const { to->Write("%s", name.c_str()); }
117 void FieldVariable::Write(CodeWriter* to) const {
119 this->object->Write(to);
121 to->Write("%s", this->clazz->JavaType().c_str());
123 to->Write(".%s", name.c_str());
126 void StatementBlock::Write(CodeWriter* to) const {
127 to->Write("{\n");
130 this->statements[i]->Write(to);
132 to->Write("}\n");
145 void ExpressionStatement::Write(CodeWriter* to) const {
146 this->expression->Write(to);
147 to->Write(";\n");
156 void Assignment::Write(CodeWriter* to) const {
157 this->lvalue->Write(to);
158 to->Write(" = ");
160 to->Write("(%s)", this->cast->JavaType().c_str());
162 this->rvalue->Write(to);
201 void MethodCall::Write(CodeWriter* to) const {
203 this->obj->Write(to);
204 to->Write(".");
206 to->Write("%s.", this->clazz->JavaType().c_str());
208 to->Write("%s(", this->name.c_str());
210 to->Write(")");
216 void Comparison::Write(CodeWriter* to) const {
217 to->Write("(");
218 this->lvalue->Write(to);
219 to->Write("%s", this->op.c_str());
220 this->rvalue->Write(to);
221 to->Write(")");
240 void NewExpression::Write(CodeWriter* to) const {
241 to->Write("new %s(", this->type->InstantiableName().c_str());
243 to->Write(")");
249 void NewArrayExpression::Write(CodeWriter* to) const {
250 to->Write("new %s[", this->type->JavaType().c_str());
251 size->Write(to);
252 to->Write("]");
258 void Ternary::Write(CodeWriter* to) const {
259 to->Write("((");
260 this->condition->Write(to);
261 to->Write(")?(");
262 this->ifpart->Write(to);
263 to->Write("):(");
264 this->elsepart->Write(to);
265 to->Write("))");
270 void Cast::Write(CodeWriter* to) const {
271 to->Write("((%s)", this->type->JavaType().c_str());
272 expression->Write(to);
273 to->Write(")");
282 void VariableDeclaration::Write(CodeWriter* to) const {
285 to->Write(" = ");
287 to->Write("(%s)", this->cast->JavaType().c_str());
289 this->rvalue->Write(to);
291 to->Write(";\n");
294 void IfStatement::Write(CodeWriter* to) const {
296 to->Write("if (");
297 this->expression->Write(to);
298 to->Write(") ");
300 this->statements->Write(to);
302 to->Write("else ");
303 this->elseif->Write(to);
309 void ReturnStatement::Write(CodeWriter* to) const {
310 to->Write("return ");
311 this->expression->Write(to);
312 to->Write(";\n");
315 void TryStatement::Write(CodeWriter* to) const {
316 to->Write("try ");
317 this->statements->Write(to);
323 void CatchStatement::Write(CodeWriter* to) const {
324 to->Write("catch ");
326 to->Write("(");
328 to->Write(") ");
330 this->statements->Write(to);
333 void FinallyStatement::Write(CodeWriter* to) const {
334 to->Write("finally ");
335 this->statements->Write(to);
340 void Case::Write(CodeWriter* to) const {
346 to->Write("case %s:\n", s.c_str());
348 to->Write("default:\n");
352 to->Write("default:\n");
354 statements->Write(to);
359 void SwitchStatement::Write(CodeWriter* to) const {
360 to->Write("switch (");
361 this->expression->Write(to);
362 to->Write(")\n{\n");
365 this->cases[i]->Write(to);
367 to->Write("}\n");
370 void Break::Write(CodeWriter* to) const { to->Write("break;\n"); }
372 void Method::Write(CodeWriter* to) const {
376 to->Write("%s\n", this->comment.c_str());
387 to->Write("%s%s ", this->returnType->JavaType().c_str(), dim.c_str());
390 to->Write("%s(", this->name.c_str());
396 to->Write(", ");
400 to->Write(")");
405 to->Write(" throws ");
407 to->Write(", ");
409 to->Write("%s", this->exceptions[i]->JavaType().c_str());
413 to->Write(";\n");
415 to->Write("\n");
416 this->statements->Write(to);
420 void IntConstant::Write(CodeWriter* to) const {
422 to->Write("int %s = %d;\n", name.c_str(), value);
425 void StringConstant::Write(CodeWriter* to) const {
427 to->Write("String %s = %s;\n", name.c_str(), value.c_str());
430 void Class::Write(CodeWriter* to) const {
434 to->Write("%s\n", this->comment.c_str());
440 to->Write("class ");
442 to->Write("interface ");
451 to->Write("%s", name.c_str());
454 to->Write(" extends %s", this->extends->JavaType().c_str());
460 to->Write(" implements");
462 to->Write(" extends");
465 to->Write(" %s", this->interfaces[i]->JavaType().c_str());
469 to->Write("\n");
470 to->Write("{\n");
474 this->elements[i]->Write(to);
477 to->Write("}\n");
504 void Document::Write(CodeWriter* to) const {
506 to->Write("%s\n", comment_.c_str());
508 to->Write(
515 to->Write("package %s;\n", package_.c_str());
519 clazz_->Write(to);