Record Class ExecutedAction
java.lang.Object
java.lang.Record
ca.mcscert.jpipe.commands.ExecutedAction
A record of a single action that took place during execution: either a
RegularCommand that was executed, or a MacroCommand that was
expanded. The depth field reflects nesting level — top-level commands
have depth 0; commands produced by expanding a macro inherit the macro's
depth + 1.-
Constructor Summary
ConstructorsConstructorDescriptionExecutedAction(Command command, int depth) Creates an instance of aExecutedActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.intdepth()Returns the value of thedepthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisMacro()True when this entry represents a macro expansion rather than direct execution.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExecutedAction
Creates an instance of aExecutedActionrecord class.- Parameters:
command- the value for thecommandrecord componentdepth- the value for thedepthrecord component
-
-
Method Details
-
isMacro
public boolean isMacro()True when this entry represents a macro expansion rather than direct execution. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-