Package: TracePatternOutputProcessor
TracePatternOutputProcessor
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TracePatternOutputProcessor() |
|
|
|
|
|
||||||||||||||||||||
applyOnExecutionResult(Node.Container) |
|
|
|
|
|
||||||||||||||||||||
applyOnExecutionResult(StringBuilder) |
|
|
|
|
|
||||||||||||||||||||
applyOnLoopResult(Node.Container) |
|
|
|
|
|
||||||||||||||||||||
applyOnLoopResult(StringBuilder) |
|
|
|
|
|
||||||||||||||||||||
getProcessorId() |
|
|
|
|
|
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: }