Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
scripts.idlnode.IDLAnnotation Class Reference
Inheritance diagram for scripts.idlnode.IDLAnnotation:
scripts.idlnode.IDLDictNode scripts.idlnode.IDLNode

Public Member Functions

def __init__ (self, ast=None)
 
- Public Member Functions inherited from scripts.idlnode.IDLDictNode
def __init__ (self, ast)
 
def __len__ (self)
 
def __getitem__ (self, key)
 
def __setitem__ (self, key, value)
 
def __delitem__ (self, key)
 
def __contains__ (self, key)
 
def __iter__ (self)
 
def get (self, key, default=None)
 
def setdefault (self, key, value=None)
 
def items (self)
 
def keys (self)
 
def values (self)
 
def clear (self)
 
def to_dict (self)
 
- Public Member Functions inherited from scripts.idlnode.IDLNode
def __init__ (self, ast, id=None)
 
def __repr__ (self)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def reset_id (self, newId)
 
def all (self, type_filter=None)
 
def to_dict (self)
 
def to_hash (self)
 

Public Attributes

 id
 
- Public Attributes inherited from scripts.idlnode.IDLNode
 id
 
 ext_attrs
 
 annotations
 
 members
 

Detailed Description

IDLDictNode specialization for one annotation.

Definition at line 1192 of file idlnode.py.

Constructor & Destructor Documentation

◆ __init__()

def scripts.idlnode.IDLAnnotation.__init__ (   self,
  ast = None 
)
Initializes an IDLNode from a PegParser AST output.

Reimplemented from scripts.idlnode.IDLDictNode.

Definition at line 1195 of file idlnode.py.

1195 def __init__(self, ast=None):
1196 IDLDictNode.__init__(self, ast)
1197 self.id = None
1198 if not ast:
1199 return
1200 for arg in self._find_all(ast, 'AnnotationArg'):
1201 name = self._find_first(arg, 'Id')
1202 value = self._find_first(arg, 'AnnotationArgValue')
1203 self[name] = value

Member Data Documentation

◆ id

scripts.idlnode.IDLAnnotation.id

Definition at line 1197 of file idlnode.py.


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