Lines Matching refs:node

93     def __ne__(self, node):
96 return not self.__eq__(node)
98 def __eq__(self, node):
99 """Check node equality
102 if not isinstance(node, FdtProperty):
104 if self.name != node.get_name():
234 def __eq__(self, node):
235 """Check node equality
238 if not FdtProperty.__eq__(self, node):
240 if self.__len__() != len(node):
243 if self.strings[index] != node[index]:
311 def __eq__(self, node):
312 """Check node equality
315 if not FdtProperty.__eq__(self, node):
317 if self.__len__() != len(node):
320 if self.words[index] != node[index]:
388 def __eq__(self, node):
389 """Check node equality
392 if not FdtProperty.__eq__(self, node):
394 if self.__len__() != len(node):
397 if self.bytes[index] != node[index]:
437 """Init node with name"""
456 def add_subnode(self, node):
458 self.append(node)
464 def set_parent_node(self, node):
465 """Set parent node, None and FdtNode accepted"""
466 if node is not None and \
467 not isinstance(node, FdtNode):
469 self.parent = node
472 """Get parent node"""
490 Pass string storage as strings_store, pos for current node start
529 """Set node at index, replacing previous subnode,
544 def __ne__(self, node):
545 """Check node inequality
550 return not self.__eq__(node)
552 def __eq__(self, node):
553 """Check node equality
558 if not isinstance(node, FdtNode):
560 if self.name != node.get_name():
564 cmpnames = set([subnode.get_name() for subnode in node
570 index = node.index(subnode.get_name())
571 if subnode != node[index]:
623 def merge(self, node):
627 if not isinstance(node, FdtNode):
629 for subnode in [obj for obj in node
644 Returns set with (path string, node object)
646 node = self
652 for index in range(start, len(node)):
653 if isinstance(node[index], (FdtNode, FdtProperty)):
654 yield ('/' + '/'.join(curpath+[node[index].get_name()]),
655 node[index])
656 if isinstance(node[index], FdtNode):
657 if len(node[index]):
658 hist.append((node, index+1))
659 curpath.append(node[index].get_name())
660 node = node[index]
666 (node, start) = hist.pop()
693 """Add root node"""
699 """Get root node"""
817 for node in curnode:
818 if subpath == node.get_name():
819 found = node
826 def _add_json_to_fdtnode(node, subjson):
831 subnode.set_parent_node(node)
832 node.append(subnode)
839 node.append(FdtPropertyWords(key, words))
842 node.append(FdtPropertyBytes(key, bytez))
844 node.append(FdtPropertyStrings(key, \
849 node.append(FdtProperty(key))
949 """Extract node name"""
1039 Returns a set with the pre-node Nops, the Root Node,
1040 and the post-node Nops.