Example #1
0
 public void StartTermGroup()
 {
     if (Explain)
     {
         Console.WriteLine("Starting a new term group");
     }
     itsCurrentGroup = new TermGroup();
     itsTermGroupStack.Add(itsCurrentGroup);
 }
Example #2
0
            public void EndTermGroup(Query query)
            {
                if (Explain)
                {
                    Console.WriteLine("Ending an term group");
                }

                if (itsCurrentGroup.stackCount > 2)
                {
                    ReportPattern(query);
                }

                if (itsTermGroupStack.Count > 0)
                {
                    itsTermGroupStack.RemoveAt(itsTermGroupStack.Count - 1);
                }

                if (itsTermGroupStack.Count > 0)
                {
                    itsCurrentGroup = (TermGroup)itsTermGroupStack[itsTermGroupStack.Count - 1];
                }
            }
Example #3
0
 public void StartBlankNodeGroup()
 {
     itsCurrentGroup = new TermGroup();
     itsTermGroupStack.Add(itsCurrentGroup);
 }