Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, root_dir) |
def | Clone (self) |
def | Delete (self) |
def | Load (self) |
def | Cache (self) |
def | LoadFromCache (self) |
def | Save (self) |
def | HasInterface (self, interface_name) |
def | GetInterface (self, interface_name) |
def | AddInterface (self, interface) |
def | GetInterfaces (self) |
def | DeleteInterface (self, interface_name) |
def | Hierarchy (self, interface) |
def | HasEnum (self, enum_name) |
def | GetEnum (self, enum_name) |
def | AddEnum (self, enum) |
def | HasDictionary (self, dictionary_name) |
def | GetDictionary (self, dictionary_name) |
def | AddDictionary (self, dictionary) |
def | GetDictionaries (self) |
def | HasTypeDef (self, type_def_name) |
def | GetTypeDef (self, type_def_name) |
def | AddTypeDef (self, type_def) |
def | TransitiveSecondaryParents (self, interface, propagate_event_target) |
The Database class manages a collection of IDL files stored inside a directory. Each IDL is describing a single interface. The IDL files are written in the FremontCut syntax, which is derived from the Web IDL syntax and includes annotations. Database operations include adding, updating and removing IDL files.
Definition at line 20 of file database.py.
def scripts.database.Database.__init__ | ( | self, | |
root_dir | |||
) |
Initializes a Database over a given directory. Args: root_dir -- a directory. If directory does not exist, it will be created.
Definition at line 31 of file database.py.
def scripts.database.Database.AddDictionary | ( | self, | |
dictionary | |||
) |
Returns an IDLDictionary corresponding to the dictionary_name from memory. Args: dictionary -- the name of the dictionary.
Definition at line 269 of file database.py.
def scripts.database.Database.AddEnum | ( | self, | |
enum | |||
) |
Definition at line 251 of file database.py.
def scripts.database.Database.AddInterface | ( | self, | |
interface | |||
) |
Returns an IDLInterface corresponding to the interface_name from memory. Args: interface -- the name of the interface.
Definition at line 197 of file database.py.
def scripts.database.Database.AddTypeDef | ( | self, | |
type_def | |||
) |
Add only a typedef that a unions they map to any (no type).
Definition at line 303 of file database.py.
def scripts.database.Database.Cache | ( | self | ) |
Serialize the database using pickle for faster startup in the future
Definition at line 131 of file database.py.
def scripts.database.Database.Clone | ( | self | ) |
Definition at line 49 of file database.py.
def scripts.database.Database.Delete | ( | self | ) |
Deletes the database by deleting its directory
Definition at line 60 of file database.py.
def scripts.database.Database.DeleteInterface | ( | self, | |
interface_name | |||
) |
Deletes an interface from the database. File is deleted when Save() is called. Args: interface_name -- the name of the interface.
Definition at line 216 of file database.py.
def scripts.database.Database.GetDictionaries | ( | self | ) |
Returns a list of all loaded dictionaries.
Definition at line 281 of file database.py.
def scripts.database.Database.GetDictionary | ( | self, | |
dictionary_name | |||
) |
Returns an IDLDictionary corresponding to the dictionary_name from memory. Args: dictionary_name -- the name of the dictionary.
Definition at line 258 of file database.py.
def scripts.database.Database.GetEnum | ( | self, | |
enum_name | |||
) |
Definition at line 248 of file database.py.
def scripts.database.Database.GetInterface | ( | self, | |
interface_name | |||
) |
Returns an IDLInterface corresponding to the interface_name from memory. Args: interface_name -- the name of the interface.
Definition at line 186 of file database.py.
def scripts.database.Database.GetInterfaces | ( | self | ) |
Returns a list of all loaded interfaces.
Definition at line 209 of file database.py.
def scripts.database.Database.GetTypeDef | ( | self, | |
type_def_name | |||
) |
Returns an IDLTypeDef corresponding to the type_def_name from memory. Args: type_def_name -- the name of the typedef.
Definition at line 292 of file database.py.
def scripts.database.Database.HasDictionary | ( | self, | |
dictionary_name | |||
) |
Returns True if the dictionary is in memory
Definition at line 254 of file database.py.
def scripts.database.Database.HasEnum | ( | self, | |
enum_name | |||
) |
Definition at line 245 of file database.py.
def scripts.database.Database.HasInterface | ( | self, | |
interface_name | |||
) |
Returns True if the interface is in memory
Definition at line 182 of file database.py.
def scripts.database.Database.HasTypeDef | ( | self, | |
type_def_name | |||
) |
Returns True if the typedef is in memory
Definition at line 288 of file database.py.
def scripts.database.Database.Hierarchy | ( | self, | |
interface | |||
) |
Definition at line 235 of file database.py.
def scripts.database.Database.Load | ( | self | ) |
Loads all interfaces into memory.
Definition at line 123 of file database.py.
def scripts.database.Database.LoadFromCache | ( | self | ) |
Deserialize the database using pickle for fast startup
Definition at line 138 of file database.py.
def scripts.database.Database.Save | ( | self | ) |
Saves all in-memory interfaces into files.
Definition at line 150 of file database.py.
def scripts.database.Database.TransitiveSecondaryParents | ( | self, | |
interface, | |||
propagate_event_target | |||
) |
Returns a list of all non-primary parents. The list contains the interface objects for interfaces defined in the database, and the name for undefined interfaces.
Definition at line 311 of file database.py.