Record Class CompilationPhaseResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.CompilationPhaseResult
public record CompilationPhaseResult(CompilationPhase phase, boolean phaseSuccess, boolean phaseMatch)
extends Record
Effectively a tuple for returning if the phase was a match for the required
compilation phase to be run to and if this phase ran ok.
-
Constructor Summary
ConstructorsConstructorDescriptionCompilationPhaseResult(CompilationPhase phase, boolean phaseSuccess, boolean phaseMatch) Creates an instance of aCompilationPhaseResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.phase()Returns the value of thephaserecord component.booleanReturns the value of thephaseMatchrecord component.booleanReturns the value of thephaseSuccessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CompilationPhaseResult
Creates an instance of aCompilationPhaseResultrecord class.- Parameters:
phase- the value for thephaserecord componentphaseSuccess- the value for thephaseSuccessrecord componentphaseMatch- the value for thephaseMatchrecord 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. -
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
phaseSuccess
public boolean phaseSuccess()Returns the value of thephaseSuccessrecord component.- Returns:
- the value of the
phaseSuccessrecord component
-
phaseMatch
public boolean phaseMatch()Returns the value of thephaseMatchrecord component.- Returns:
- the value of the
phaseMatchrecord component
-