Lines Matching refs:self
27 def __init__(self, name, parent): argument
28 self._name = name
29 self._children_map = {}
30 self._is_leaf = False
31 self._parent = parent
32 self._includes_submake = None
34 self._path = os.path.join(parent._GetPath(), name)
36 self._path = ""
38 def _AddPath(self, path_segs): argument
46 return self
48 child = self._children_map.get(current_seg)
50 child = MakeNode(current_seg, self)
51 self._children_map[current_seg] = child
54 def _SetLeaf(self, is_leaf): argument
55 self._is_leaf = is_leaf
57 def _GetPath(self): argument
58 return self._path
60 def _DoesIncludesSubMake(self): argument
61 if self._includes_submake is None:
62 if self._is_leaf:
63 path = os.path.join(android_build.GetTop(), self._path)
65 self._includes_submake = mk_parser.IncludesMakefilesUnder()
67 self._includes_submake = False
68 return self._includes_submake
70 def _DoesParentIncludeMe(self): argument
71 return self._parent and self._parent._DoesIncludesSubMake()
73 def _BuildPrunedMakeList(self, make_list): argument
74 if self._is_leaf and not self._DoesParentIncludeMe():
75 make_list.append(os.path.join(self._path, "Android.mk"))
76 for child in self._children_map.itervalues():
87 def __init__(self): argument
88 super(MakeTree, self).__init__("", None)
90 def AddPath(self, path): argument
103 child = self._AddPath(path_segs)
106 def GetPrunedMakeList(self): argument
111 self._BuildPrunedMakeList(make_list)
114 def IsEmpty(self): argument
115 return not self._children_map