1 | package com.github.dakusui.actionunit.visitors; | |
2 | ||
3 | import com.github.dakusui.actionunit.core.Action; | |
4 | import com.github.dakusui.actionunit.core.Context; | |
5 | ||
6 | public class SimpleActionPerformer extends ActionPerformer implements Action.Visitor { | |
7 | ||
8 | private SimpleActionPerformer() { | |
9 | this(Context.create()); | |
10 | } | |
11 | ||
12 | private SimpleActionPerformer(Context context) { | |
13 | super(context); | |
14 | } | |
15 | ||
16 | @Override | |
17 | protected void callAccept(Action action, Action.Visitor visitor) { | |
18 |
1
1. callAccept : removed call to com/github/dakusui/actionunit/core/Action::accept → KILLED |
action.accept(visitor); |
19 | } | |
20 | ||
21 | @Override | |
22 | protected SimpleActionPerformer newInstance(Context context) { | |
23 |
1
1. newInstance : replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::newInstance → KILLED |
return new SimpleActionPerformer(context); |
24 | } | |
25 | ||
26 | public static SimpleActionPerformer create() { | |
27 |
1
1. create : replaced return value with null for com/github/dakusui/actionunit/visitors/SimpleActionPerformer::create → KILLED |
return new SimpleActionPerformer(); |
28 | } | |
29 | } | |
Mutations | ||
18 |
1.1 |
|
23 |
1.1 |
|
27 |
1.1 |