class AidlMethod
Defined at line 878 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
Public Methods
void AidlMethod (const AidlLocation & location, bool oneway, AidlTypeSpecifier * type, const string & name, vector<unique_ptr<AidlArgument>> * args, const Comments & comments)
void AidlMethod (const AidlLocation & location, bool oneway, AidlTypeSpecifier * type, const string & name, vector<unique_ptr<AidlArgument>> * args, const Comments & comments, int id)
void ~AidlMethod ()
Defined at line 884 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void AidlMethod (const AidlMethod & )
non-copyable, non-movable
Defined at line 887 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void AidlMethod (AidlMethod && )
Defined at line 888 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool CheckValid (const AidlTypenames & )
AidlMethod & operator= (const AidlMethod & )
Defined at line 889 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
AidlMethod & operator= (AidlMethod && )
Defined at line 890 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const AidlTypeSpecifier & GetType ()
Defined at line 893 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
AidlTypeSpecifier * GetMutableType ()
Defined at line 894 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void ApplyInterfaceOneway (bool oneway)
set if this method is part of an interface that is marked oneway
Defined at line 897 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool IsOneway ()
Defined at line 898 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool HasOnewayAnnotation ()
Defined at line 899 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const std::string & GetName ()
Defined at line 901 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool HasId ()
Defined at line 902 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
int GetId ()
Defined at line 903 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void SetId (unsigned int id)
TODO: Set is errorprone, what if it was set before?
Defined at line 906 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const std::vector<std::unique_ptr<AidlArgument>> & GetArguments ()
Defined at line 908 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const std::vector<const AidlArgument *> & GetInArguments ()
An inout parameter will appear in both GetInArguments()
and GetOutArguments(). AidlMethod retains ownership of the argument
pointers returned in this way.
Defined at line 914 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const std::vector<const AidlArgument *> & GetOutArguments ()
Defined at line 917 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
std::string ToString ()
ToString is for dumping AIDL.
Returns string representation of this method including everything.
This is "ret_type name ( arg_list ) = id".
e.g) "boolean foo(int, @Nullable String) = 1"
std::string Signature ()
Signature is for comparing AIDL types.
Returns string representation of this method's name
&
type.
e.g) "foo(int, String)"
void TraverseChildren (std::function<void (const AidlNode &)> traverse)
Defined at line 932 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void DispatchVisit (AidlVisitor & v)
Defined at line 938 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h