public static StepToken createDirective(String action) { return new StepToken(DIRECTIVE_TYPE, action); }
public static StepToken createStep(String type, String action) { return new StepToken(type, action); }
public StepToken deepCopy() { StepToken copy = new StepToken(this.type, this.action); super.deepCopy(copy); copy.endState = this.endState; copy.message = this.message; copy.throwable = this.throwable; copy.timeTaken = this.timeTaken; copy.childSteps = recursiveCopy(childSteps); return copy; }