Record Class CompilerError
java.lang.Object
java.lang.Record
org.dellroad.javabox.CompilerError
- Record Components:
lineCol- the location where the error occurred (one based)errorMessage- the error message
Captures a compilation error.
-
Constructor Summary
ConstructorsConstructorDescriptionCompilerError(LineAndColumn lineCol, String errorMessage) Creates an instance of aCompilerErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.lineCol()Returns the value of thelineColrecord component.toString()Format this instance like"12:34: continue outside of loop".
-
Constructor Details
-
CompilerError
Creates an instance of aCompilerErrorrecord class.- Parameters:
lineCol- the value for thelineColrecord componenterrorMessage- the value for theerrorMessagerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
lineCol
-
errorMessage
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-