class AidlVariableDeclaration
Defined at line 524 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
TODO: This class is used for method arguments and also parcelable fields,
and it should be split up since default values don't apply to method
arguments
Public Methods
void AidlVariableDeclaration (const AidlLocation & location, AidlTypeSpecifier * type, const std::string & name)
void AidlVariableDeclaration (const AidlLocation & location, AidlTypeSpecifier * type, const std::string & name, AidlConstantValue * default_value)
void ~AidlVariableDeclaration ()
Defined at line 530 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void AidlVariableDeclaration (const AidlVariableDeclaration & )
non-copyable, non-movable
Defined at line 533 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
void AidlVariableDeclaration (AidlVariableDeclaration && )
Defined at line 534 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
std::string GetCapitalizedName ()
AidlVariableDeclaration & operator= (const AidlVariableDeclaration & )
Defined at line 535 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
AidlVariableDeclaration & operator= (AidlVariableDeclaration && )
Defined at line 536 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
std::string GetName ()
Defined at line 538 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const AidlTypeSpecifier & GetType ()
Defined at line 540 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool IsDefaultUserSpecified ()
if this was constructed explicitly with a default value
Defined at line 542 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
const AidlConstantValue * GetDefaultValue ()
will return the default value this is constructed with or a default value
if one is available
Defined at line 545 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
AidlTypeSpecifier * GetMutableType ()
Defined at line 548 of file ../../third_party/android/platform/system/tools/aidl/aidl_language.h
bool HasUsefulDefaultValue ()
bool CheckValid (const AidlTypenames & typenames)
void DispatchVisit (AidlVisitor & v)
Defined at line 567 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 variable decl including default value.
This is "annotations type name default_value?".
e.g) "@utf8InCpp String[] names = {"hello"}"
std::string Signature ()
Signature is for comparing AIDL types.
Returns string representation of this variable decl.
This is "type name".
e.g) "String[] name" (even if it is annotated with
and has a default value.)
std::string ValueString (const ConstantValueDecorator & decorator)
void TraverseChildren (std::function<void (const AidlNode &)> traverse)