]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.graph/src/org/simantics/graph/matching/DebugMatchingStrategy.java
Option for exporting tg and pgraph with sharedlibrary
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / matching / DebugMatchingStrategy.java
1 package org.simantics.graph.matching;
2
3
4 public enum DebugMatchingStrategy implements GraphMatchingStrategy {
5
6         INSTANCE;
7         
8         @Override
9         public void applyTo(GraphMatching matching) {
10                 int[] aToB = matching.aToB;
11                 String[] names = matching.aGraph.names;
12                 for(int s=0;s<aToB.length;++s)
13                         if(aToB[s] < 0) {
14                                 System.out.println(names[s]);
15                                 for(Stat stat : matching.aGraph.statements[s]) {
16                                         System.out.println("    " + stat.toString(names));
17                                 }
18                         }
19         }
20 }