Class Step
java.lang.Object
net.covers1624.coffeegrinder.debug.Step
- All Implemented Interfaces:
AutoCloseable
Created by covers1624 on 13/5/21.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()@Nullable ThrowableGets the exception that was thrown during the execution of this step.Gets the children for this step.longlongintgetId()getName()Gets a short descriptive name for this step.@Nullable StepGets the parent for this step.@Nullable StringThe content provided for this step after action was taken by the step.@Nullable StringThe content provided for this step before any action was taken by the step.longGets the status of this Step.getType()Gets this Steps type.
-
Method Details
-
getName
Gets a short descriptive name for this step. Usually the Transformer/method name/class name- Returns:
- The name.
-
getId
public int getId() -
getType
Gets this Steps type.- Returns:
- The type of Step this is.
-
getContextType
-
getStatus
Gets the status of this Step.- Returns:
- The status.
-
getCaughtException
Gets the exception that was thrown during the execution of this step.- Returns:
- The exception or
nullif the step executed successfully.
-
getParent
Gets the parent for this step. This will be null for the root node.- Returns:
- The parent step, or null for the root node.
-
getChildren
Gets the children for this step.- Returns:
- An Immutable view of children.
-
getPreStepContent
The content provided for this step before any action was taken by the step.- Returns:
- The content. May return null if the Stepper responsible does not support content.
-
getPostStepContent
The content provided for this step after action was taken by the step.- Returns:
- The content. May return null if the Stepper responsible does not support content.
-
getStartTime
public long getStartTime()- Returns:
- The time in nanoseconds this step started.
-
getEndTime
public long getEndTime()- Returns:
- The time in nanoseconds this step ended.
-
getDuration
public long getDuration()- Returns:
- The duration in nanoseconds this step took.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-