Flutter Engine
The Flutter Engine
|
Public Member Functions | |
def | __init__ (self, interface, options, dart_use_blink, logger) |
def | EmitSupportCheck (self) |
def | EmitEventGetter (self, events_class_name) |
def | AddMembers (self, interface, declare_only=False, dart_js_interop=False) |
def | AddSecondaryMembers (self, interface) |
def | OmitOperationOverrides (self) |
def | AddConstant (self, constant) |
def | AddAttribute (self, attribute, declare_only=False) |
def | AddOperation (self, info, declare_only=False, dart_js_interop=False) |
def | AdditionalImplementedInterfaces (self) |
def | Mixins (self) |
def | AddConstructors (self, constructors, factory_name, factory_constructor_name, constructor_emitter) |
def | EmitHelpers (self, base_class, members_emitter) |
def | DeclareAttribute (self, attribute, attr_name, read_only) |
def | DeclareOperation (self, operation, return_type_name, method_name) |
def | EmitListMixin (self, element_name, nullable) |
def | SecureOutputType (self, type_name, is_dart_type=False, can_narrow_type=False, nullable=False) |
def | SecureBaseName (self, type_name) |
def | is_DOM_type (self, type_name) |
Definition at line 40 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.__init__ | ( | self, | |
interface, | |||
options, | |||
dart_use_blink, | |||
logger | |||
) |
Reimplemented in scripts.systemnative.DartiumBackend, and scripts.systemhtml.Dart2JSBackend.
Definition at line 42 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddAttribute | ( | self, | |
attribute, | |||
declare_only = False |
|||
) |
Adds an attribute to the generated class. Arguments: attribute - The attribute which is to be added. declare_only- True if the attribute should be declared as an abstract member and not include invocation code.
Definition at line 297 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddConstant | ( | self, | |
constant | |||
) |
Definition at line 276 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddConstructors | ( | self, | |
constructors, | |||
factory_name, | |||
factory_constructor_name, | |||
constructor_emitter | |||
) |
Adds all of the constructors. Arguments: constructors - List of the constructors to be added. factory_name - Name of the factory for this class. factory_constructor_name - The name of the constructor on the factory_name to call (calls an autogenerated FactoryProvider if unspecified) constructor_emitter - Emitter used to emit constructors when generating classes using the static extension pattern.
Definition at line 538 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AdditionalImplementedInterfaces | ( | self | ) |
Reimplemented in scripts.systemhtml.Dart2JSBackend.
Definition at line 515 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddMembers | ( | self, | |
interface, | |||
declare_only = False , |
|||
dart_js_interop = False |
|||
) |
Definition at line 77 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddOperation | ( | self, | |
info, | |||
declare_only = False , |
|||
dart_js_interop = False |
|||
) |
Definition at line 328 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.AddSecondaryMembers | ( | self, | |
interface | |||
) |
Definition at line 123 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.DeclareAttribute | ( | self, | |
attribute, | |||
attr_name, | |||
read_only | |||
) |
Declares an attribute but does not include the code to invoke it.
Definition at line 834 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.DeclareOperation | ( | self, | |
operation, | |||
return_type_name, | |||
method_name | |||
) |
Declares an operation but does not include the code to invoke it. Arguments: operation - The operation to be declared. return_type_name - The name of the return type. method_name - The name of the method.
Definition at line 858 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.EmitEventGetter | ( | self, | |
events_class_name | |||
) |
Definition at line 70 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.EmitHelpers | ( | self, | |
base_class, | |||
members_emitter | |||
) |
Definition at line 821 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.EmitListMixin | ( | self, | |
element_name, | |||
nullable | |||
) |
Definition at line 879 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.EmitSupportCheck | ( | self | ) |
Definition at line 55 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.is_DOM_type | ( | self, | |
type_name | |||
) |
Definition at line 961 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.Mixins | ( | self | ) |
Definition at line 526 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.OmitOperationOverrides | ( | self | ) |
Reimplemented in scripts.systemhtml.Dart2JSBackend.
Definition at line 273 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.SecureBaseName | ( | self, | |
type_name | |||
) |
Definition at line 957 of file htmldartgenerator.py.
def scripts.htmldartgenerator.HtmlDartGenerator.SecureOutputType | ( | self, | |
type_name, | |||
is_dart_type = False , |
|||
can_narrow_type = False , |
|||
nullable = False |
|||
) |
Converts the type name to the secure type name for return types. Arguments: can_narrow_type - True if the output type can be narrowed further than what would be accepted for input, used to narrow num APIs down to double or int.
Definition at line 927 of file htmldartgenerator.py.