Record Class NormalizedSemanticProgram
java.lang.Object
java.lang.Record
name.jurgenei.gradle.antlr.semantic.NormalizedSemanticProgram
- Record Components:
languageId- language identifier.sourcePath- source or AST-relative path.actionCalls- normalized action-call names.fedSqlQueryCount- number of FEDSQL queries detected in action payloads.fedSqlParsedCount- number of FEDSQL queries parsed successfully.fedSqlFailedCount- number of FEDSQL queries failing parser validation.fedSqlErrors- parse-error summaries for failed FEDSQL payloads.
- All Implemented Interfaces:
SemanticProgram
public record NormalizedSemanticProgram(String languageId, String sourcePath, List<String> actionCalls, int fedSqlQueryCount, int fedSqlParsedCount, int fedSqlFailedCount, List<String> fedSqlErrors)
extends Record
implements SemanticProgram
Normalized semantic projection shared across language modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactionCallsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefedSqlErrorsrecord component.intReturns the value of thefedSqlFailedCountrecord component.intReturns the value of thefedSqlParsedCountrecord component.intReturns the value of thefedSqlQueryCountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelanguageIdrecord component.Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NormalizedSemanticProgram
public NormalizedSemanticProgram(String languageId, String sourcePath, List<String> actionCalls, int fedSqlQueryCount, int fedSqlParsedCount, int fedSqlFailedCount, List<String> fedSqlErrors) Creates an instance of aNormalizedSemanticProgramrecord class.- Parameters:
languageId- the value for thelanguageIdrecord componentsourcePath- the value for thesourcePathrecord componentactionCalls- the value for theactionCallsrecord componentfedSqlQueryCount- the value for thefedSqlQueryCountrecord componentfedSqlParsedCount- the value for thefedSqlParsedCountrecord componentfedSqlFailedCount- the value for thefedSqlFailedCountrecord componentfedSqlErrors- the value for thefedSqlErrorsrecord component
-
-
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 '=='. -
languageId
Returns the value of thelanguageIdrecord component.- Specified by:
languageIdin interfaceSemanticProgram- Returns:
- the value of the
languageIdrecord component
-
sourcePath
Returns the value of thesourcePathrecord component.- Specified by:
sourcePathin interfaceSemanticProgram- Returns:
- the value of the
sourcePathrecord component
-
actionCalls
Returns the value of theactionCallsrecord component.- Returns:
- the value of the
actionCallsrecord component
-
fedSqlQueryCount
public int fedSqlQueryCount()Returns the value of thefedSqlQueryCountrecord component.- Returns:
- the value of the
fedSqlQueryCountrecord component
-
fedSqlParsedCount
public int fedSqlParsedCount()Returns the value of thefedSqlParsedCountrecord component.- Returns:
- the value of the
fedSqlParsedCountrecord component
-
fedSqlFailedCount
public int fedSqlFailedCount()Returns the value of thefedSqlFailedCountrecord component.- Returns:
- the value of the
fedSqlFailedCountrecord component
-
fedSqlErrors
Returns the value of thefedSqlErrorsrecord component.- Returns:
- the value of the
fedSqlErrorsrecord component
-