diff options
author | Joe Onorato <joeo@google.com> | 2011-08-30 17:24:17 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-02-10 10:51:20 -0800 |
commit | fdfe2ff8c60c367a4eb7cecb4cbe1d62b41a8c20 (patch) | |
tree | 33ff6ed8e57f31aebadd5e04c7f97dae01917ea9 /tools/aidl/AST.h | |
parent | a8f767a2395c0127b7f5adb9e207fdd994144e17 (diff) | |
download | frameworks_base-fdfe2ff8c60c367a4eb7cecb4cbe1d62b41a8c20.zip frameworks_base-fdfe2ff8c60c367a4eb7cecb4cbe1d62b41a8c20.tar.gz frameworks_base-fdfe2ff8c60c367a4eb7cecb4cbe1d62b41a8c20.tar.bz2 |
Checkpoint adding @home RPC support to aidl
Diffstat (limited to 'tools/aidl/AST.h')
-rwxr-xr-x | tools/aidl/AST.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/aidl/AST.h b/tools/aidl/AST.h index 3156356..fe92a26 100755 --- a/tools/aidl/AST.h +++ b/tools/aidl/AST.h @@ -54,6 +54,16 @@ struct LiteralExpression : public Expression virtual void Write(FILE* to); }; +// TODO: also escape the contents. not needed for now +struct StringLiteralExpression : public Expression +{ + string value; + + StringLiteralExpression(const string& value); + virtual ~StringLiteralExpression(); + virtual void Write(FILE* to); +}; + struct Variable : public Expression { Type* type; @@ -146,6 +156,7 @@ struct MethodCall : public Expression vector<string> exceptions; MethodCall(const string& name); + MethodCall(const string& name, int argc, ...); MethodCall(Expression* obj, const string& name); MethodCall(Type* clazz, const string& name); MethodCall(Expression* obj, const string& name, int argc, ...); @@ -174,8 +185,12 @@ struct NewExpression : public Expression vector<Expression*> arguments; NewExpression(Type* type); + NewExpression(Type* type, int argc, ...); virtual ~NewExpression(); virtual void Write(FILE* to); + +private: + void init(int n, va_list args); }; struct NewArrayExpression : public Expression |