Record Class DiagnosticSnapshot.ActionInfo
java.lang.Object
java.lang.Record
ca.mcscert.jpipe.compiler.model.DiagnosticSnapshot.ActionInfo
- Record Components:
index- 1-based position in the execution order.depth- nesting depth inside macro expansions.macro- true when the action is a macro command.description- the command's own rendering of itself.
- Enclosing class:
DiagnosticSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionActionInfo(int index, int depth, boolean macro, String description) Creates an instance of aActionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdepth()Returns the value of thedepthrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanmacro()Returns the value of themacrorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionInfo
Creates an instance of aActionInforecord class.- Parameters:
index- the value for theindexrecord componentdepth- the value for thedepthrecord componentmacro- the value for themacrorecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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. -
index
-
depth
-
macro
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-