Skip to content

Package: TracePatternOutputProcessor

TracePatternOutputProcessor

nameinstructionbranchcomplexitylinemethod
TracePatternOutputProcessor()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
applyOnExecutionResult(Node.Container)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
applyOnExecutionResult(StringBuilder)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
applyOnLoopResult(Node.Container)
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 5 C: 0
0%
M: 1 C: 0
0%
applyOnLoopResult(StringBuilder)
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getProcessorId()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /**
2: * <copyright>
3: *
4: * Copyright (c) 2009-2010 Thales Corporate Services S.A.S.
5: * This program and the accompanying materials
6: * are made available under the terms of the Eclipse Public License v2.0
7: * which accompanies this distribution, and is available at
8: * https://www.eclipse.org/legal/epl-v2.0.
9: *
10: * SPDX-License-Identifier: EPL-2.0
11: *
12: * Contributors:
13: * Thales Corporate Services S.A.S - initial API and implementation
14: *
15: * </copyright>
16: */
17:
18: package org.eclipse.egf.pattern.trace;
19:
20: import java.io.IOException;
21:
22: import org.eclipse.egf.model.pattern.Node;
23: import org.eclipse.egf.model.pattern.Node.Container;
24: import org.eclipse.egf.model.pattern.PatternOutputProcessor;
25: import org.eclipse.egf.pattern.EGFPatternPlugin;
26:
27: /**
28: * @author Thomas Guiu
29: *
30: */
31: public class TracePatternOutputProcessor implements PatternOutputProcessor {
32:
33: public void applyOnExecutionResult(Node.Container root) {
34: }
35:
36: public void applyOnLoopResult(Container root) {
37: try {
38: TraceHelper createInstance = TraceHelper.createInstance();
39: createInstance.apply(root);
40: } catch (IOException e) {
41: EGFPatternPlugin.getDefault().logError(e);
42: // TODO mettre une clausse throws
43: }
44: }
45:
46: public String getProcessorId() {
47:
48: return TraceHelper.DEFAULT_TRACE_PROCESSOR_ID;
49: }
50:
51: public void applyOnLoopResult(StringBuilder builder) {
52: }
53:
54: public void applyOnExecutionResult(StringBuilder builder) {
55: }
56:
57: }