Mercurial > hg > Database > jungle-sharp
view src/main/csharp/jp.ac.u-ryukyu.ie.cr/jungle/traverser/InterfaceTraverser.cs @ 0:dec15de2c6ff
first commit
author | Kazuma |
---|---|
date | Tue, 21 Jun 2016 17:11:12 +0900 |
parents | |
children |
line wrap: on
line source
public class InterfaceTraverser { TreeNode root; TreeMap<string, TreeMap<string, List<TreeNode>>> indexList; ParentIndex parentIndex; bool parentUpdateFlag; bool useIndex; public InterfaceTraverser(TreeNode root, bool indexFlag) : this (root, new TreeMap<string, TreeMap<string, List<TreeNode>>> (), new ParentIndex (), indexFlag) { } public InterfaceTraverser(TreeNode root, TreeMap<string, TreeMap<string, List<TreeNode>>> index, ParentIndex parentIndex, bool useIndex) { this.root = root; this.indexList = index; this.parentIndex = parentIndex; if (parentIndex.isEmpty()) parentUpdateFlag = true; else parentUpdateFlag = false; this.useIndex = useIndex; } public TreeMap<string, TreeMap<string, List<TreeNode>>> getIndex() { return indexList; } public void commit() { parentUpdateFlag = false; } public ParentIndex getParentIndex() { return parentIndex; } }