AndroidIdlInfo
Information about Android IDLsMethods
AndroidIdlInfo
AndroidIdlInfo AndroidIdlInfo(transitive_idl_import_roots, transitive_idl_imports, transitive_idl_jars, transitive_idl_preprocessed)The
AndroidIdlInfo
constructor.
Parameters
Parameter | Description |
---|---|
transitive_idl_import_roots
|
A depset of strings of all the idl import roots in the transitive closure. |
transitive_idl_imports
|
A depset of artifacts of all the idl imports in the transitive closure. |
transitive_idl_jars
|
A depset of artifacts of all the idl class and source jars in the transitive closure. |
transitive_idl_preprocessed
|
A depset of artifacts of all the idl preprocessed files in the transitive closure. |
to_json
string AndroidIdlInfo.to_json()Creates a JSON string from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs, a list of these types or a dictionary with string keys and values of these types. Quotes and new lines in strings are escaped. Examples:
struct(key=123).to_json() # {"key":123} struct(key=True).to_json() # {"key":true} struct(key=[1, 2, 3]).to_json() # {"key":[1,2,3]} struct(key='text').to_json() # {"key":"text"} struct(key=struct(inner_key='text')).to_json() # {"key":{"inner_key":"text"}} struct(key=[struct(inner_key=1), struct(inner_key=2)]).to_json() # {"key":[{"inner_key":1},{"inner_key":2}]} struct(key=struct(inner_key=struct(inner_inner_key='text'))).to_json() # {"key":{"inner_key":{"inner_inner_key":"text"}}}
to_proto
string AndroidIdlInfo.to_proto()Creates a text message from the struct parameter. This method only works if all struct elements (recursively) are strings, ints, booleans, other structs or a list of these types. Quotes and new lines in strings are escaped. Keys are iterated in the sorted order. Examples:
struct(key=123).to_proto() # key: 123 struct(key=True).to_proto() # key: true struct(key=[1, 2, 3]).to_proto() # key: 1 # key: 2 # key: 3 struct(key='text').to_proto() # key: "text" struct(key=struct(inner_key='text')).to_proto() # key { # inner_key: "text" # } struct(key=[struct(inner_key=1), struct(inner_key=2)]).to_proto() # key { # inner_key: 1 # } # key { # inner_key: 2 # } struct(key=struct(inner_key=struct(inner_inner_key='text'))).to_proto() # key { # inner_key { # inner_inner_key: "text" # } # }
transitive_idl_import_roots
depset AndroidIdlInfo.transitive_idl_import_rootsReturns a depset of strings of all the idl import roots.
transitive_idl_imports
depset AndroidIdlInfo.transitive_idl_importsReturns a depset of artifacts of all the idl imports.
transitive_idl_jars
depset AndroidIdlInfo.transitive_idl_jarsReturns a depset of artifacts of all the idl class and source jars.
transitive_idl_preprocessed
depset AndroidIdlInfo.transitive_idl_preprocessedReturns a depset of artifacts of all the idl preprocessed files.