Package edu.cmu.tetrad.search.blocks
Record Class BlockSpecTextCodec.Issue
java.lang.Object
java.lang.Record
edu.cmu.tetrad.search.blocks.BlockSpecTextCodec.Issue
- Record Components:
line- The line number where the issue occurred. Lines are 1-based indexed.col- The column number where the issue occurred. Columns are 1-based indexed.severity- The severity level of the issue, indicating whether it is an error or a warning.message- A descriptive message detailing the nature of the issue.token- The specific token or element in the input that caused the issue.
- Enclosing class:
BlockSpecTextCodec
public static record BlockSpecTextCodec.Issue(int line, int col, BlockSpecTextCodec.Severity severity, String message, String token)
extends Record
Represents an issue encountered during the parsing or processing of block specifications.
An issue captures specific details related to a problem found in the input textual representation of block specifications. This includes the line and column where the issue occurred, its severity, a descriptive message, and the token associated with the issue.
The purpose of this class is to provide a structured way to convey problems that arise during parsing or validation, allowing for clear identification and resolution of such issues.
-
Constructor Summary
ConstructorsConstructorDescriptionIssue(int line, int col, BlockSpecTextCodec.Severity severity, String message, String token) Creates an instance of aIssuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcol()Returns the value of thecolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.severity()Returns the value of theseverityrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Issue
Creates an instance of aIssuerecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
col
public int col()Returns the value of thecolrecord component.- Returns:
- the value of the
colrecord component
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-