-package org.simantics.graph.matching;\r
-\r
-\r
-public enum DebugMatchingStrategy implements GraphMatchingStrategy {\r
-\r
- INSTANCE;\r
- \r
- @Override\r
- public void applyTo(GraphMatching matching) {\r
- int[] aToB = matching.aToB;\r
- String[] names = matching.aGraph.names;\r
- for(int s=0;s<aToB.length;++s)\r
- if(aToB[s] < 0) {\r
- System.out.println(names[s]);\r
- for(Stat stat : matching.aGraph.statements[s]) {\r
- System.out.println(" " + stat.toString(names));\r
- }\r
- }\r
- }\r
-}\r
+package org.simantics.graph.matching;
+
+
+public enum DebugMatchingStrategy implements GraphMatchingStrategy {
+
+ INSTANCE;
+
+ @Override
+ public void applyTo(GraphMatching matching) {
+ int[] aToB = matching.aToB;
+ String[] names = matching.aGraph.names;
+ for(int s=0;s<aToB.length;++s)
+ if(aToB[s] < 0) {
+ System.out.println(names[s]);
+ for(Stat stat : matching.aGraph.statements[s]) {
+ System.out.println(" " + stat.toString(names));
+ }
+ }
+ }
+}