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 Details

    • NormalizedSemanticProgram

      public NormalizedSemanticProgram(String languageId, String sourcePath, List<String> actionCalls, int fedSqlQueryCount, int fedSqlParsedCount, int fedSqlFailedCount, List<String> fedSqlErrors)
      Creates an instance of a NormalizedSemanticProgram record class.
      Parameters:
      languageId - the value for the languageId record component
      sourcePath - the value for the sourcePath record component
      actionCalls - the value for the actionCalls record component
      fedSqlQueryCount - the value for the fedSqlQueryCount record component
      fedSqlParsedCount - the value for the fedSqlParsedCount record component
      fedSqlFailedCount - the value for the fedSqlFailedCount record component
      fedSqlErrors - the value for the fedSqlErrors record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • languageId

      public String languageId()
      Returns the value of the languageId record component.
      Specified by:
      languageId in interface SemanticProgram
      Returns:
      the value of the languageId record component
    • sourcePath

      public String sourcePath()
      Returns the value of the sourcePath record component.
      Specified by:
      sourcePath in interface SemanticProgram
      Returns:
      the value of the sourcePath record component
    • actionCalls

      public List<String> actionCalls()
      Returns the value of the actionCalls record component.
      Returns:
      the value of the actionCalls record component
    • fedSqlQueryCount

      public int fedSqlQueryCount()
      Returns the value of the fedSqlQueryCount record component.
      Returns:
      the value of the fedSqlQueryCount record component
    • fedSqlParsedCount

      public int fedSqlParsedCount()
      Returns the value of the fedSqlParsedCount record component.
      Returns:
      the value of the fedSqlParsedCount record component
    • fedSqlFailedCount

      public int fedSqlFailedCount()
      Returns the value of the fedSqlFailedCount record component.
      Returns:
      the value of the fedSqlFailedCount record component
    • fedSqlErrors

      public List<String> fedSqlErrors()
      Returns the value of the fedSqlErrors record component.
      Returns:
      the value of the fedSqlErrors record component