Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
scripts.idlnode.IDLAttribute Class Reference
Inheritance diagram for scripts.idlnode.IDLAttribute:
scripts.idlnode.IDLMember scripts.idlnode.IDLNode

Public Member Functions

 __init__ (self, ast, doc_js_interface_name)
 
- Public Member Functions inherited from scripts.idlnode.IDLNode
 __repr__ (self)
 
 __eq__ (self, other)
 
 __hash__ (self)
 
 reset_id (self, newId)
 
 all (self, type_filter=None)
 
 to_dict (self)
 
 to_hash (self)
 

Public Attributes

 is_read_only
 
- Public Attributes inherited from scripts.idlnode.IDLMember
 type
 
 doc_js_interface_name
 
 is_fc_suppressed
 
 is_static
 
- Public Attributes inherited from scripts.idlnode.IDLNode
 id
 
 ext_attrs
 
 annotations
 
 members
 

Protected Member Functions

 _extra_repr (self)
 
- Protected Member Functions inherited from scripts.idlnode.IDLNode
 _all_subnodes (self)
 
 _to_hashable (self, obj)
 
 _find_all (self, ast, label, max_results=sys.maxsize)
 
 _find_first (self, ast, label)
 
 _has (self, ast, label)
 
 _convert_label_to_field (self, label)
 
 _convert_all (self, ast, label, idlnode_ctor)
 
 _convert_first (self, ast, label, idlnode_ctor)
 
 _convert_ext_attrs (self, ast)
 
 _convert_annotations (self, ast)
 
 _convert_constants (self, ast, js_name)
 

Detailed Description

IDLNode specialization for 'attribute type name' declarations.

Definition at line 1093 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

scripts.idlnode.IDLAttribute.__init__ (   self,
  ast,
  id 
)
Initializes an IDLNode from a PegParser AST output.

Reimplemented from scripts.idlnode.IDLMember.

Definition at line 1096 of file idlnode.py.

1096 def __init__(self, ast, doc_js_interface_name):
1097 IDLMember.__init__(self, ast, doc_js_interface_name)
1098 self.is_read_only = self._has(ast, 'ReadOnly')
1099 # There are various ways to define exceptions for attributes:
1100

Member Function Documentation

◆ _extra_repr()

scripts.idlnode.IDLAttribute._extra_repr (   self)
protected
Returns string of extra info for __repr__().

Reimplemented from scripts.idlnode.IDLNode.

Definition at line 1101 of file idlnode.py.

1101 def _extra_repr(self):
1102 extra = []
1103 if self.is_read_only: extra.append('readonly')
1104 return extra
1105
1106

Member Data Documentation

◆ is_read_only

scripts.idlnode.IDLAttribute.is_read_only

Definition at line 1098 of file idlnode.py.


The documentation for this class was generated from the following file: