Record Class PassTracer.PassTraceEntry
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.trace.PassTracer.PassTraceEntry
- Enclosing class:
PassTracer
public static record PassTracer.PassTraceEntry(String passName, ImpScmNode beforeAst, ImpScmNode afterAst, long durationNanos)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPassTraceEntry(String passName, ImpScmNode beforeAst, ImpScmNode afterAst, long durationNanos) Creates an instance of aPassTraceEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafterAst()Returns the value of theafterAstrecord component.Returns the value of thebeforeAstrecord component.longReturns the value of thedurationNanosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.passName()Returns the value of thepassNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PassTraceEntry
public PassTraceEntry(String passName, ImpScmNode beforeAst, ImpScmNode afterAst, long durationNanos) Creates an instance of aPassTraceEntryrecord class.- Parameters:
passName- the value for thepassNamerecord componentbeforeAst- the value for thebeforeAstrecord componentafterAst- the value for theafterAstrecord componentdurationNanos- the value for thedurationNanosrecord 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. -
passName
Returns the value of thepassNamerecord component.- Returns:
- the value of the
passNamerecord component
-
beforeAst
Returns the value of thebeforeAstrecord component.- Returns:
- the value of the
beforeAstrecord component
-
afterAst
Returns the value of theafterAstrecord component.- Returns:
- the value of the
afterAstrecord component
-
durationNanos
public long durationNanos()Returns the value of thedurationNanosrecord component.- Returns:
- the value of the
durationNanosrecord component
-