Record Class Ds2SemanticProgram
java.lang.Object
java.lang.Record
name.jurgenei.gradle.antlr.semantic.Ds2SemanticProgram
- Record Components:
languageId- language identifier.sourcePath- source-relative path.methodNames- detected DS2 method names.declarationNames- detected declaration entries formatted astype name.methodCallEdges- detected call edges formatted ascaller->callee.procDs2BlockCount- number ofproc ds2blocks.dataBlockNames- detected data-block names.packageBlockNames- detected package-block names.threadBlockNames- detected thread-block names.setFromSources- detectedset fromsources.
- All Implemented Interfaces:
SemanticProgram
public record Ds2SemanticProgram(String languageId, String sourcePath, List<String> methodNames, List<String> declarationNames, List<String> methodCallEdges, int procDs2BlockCount, List<String> dataBlockNames, List<String> packageBlockNames, List<String> threadBlockNames, List<String> setFromSources)
extends Record
implements SemanticProgram
DS2-specific semantic summary for early incremental support.
-
Constructor Summary
ConstructorsConstructorDescriptionDs2SemanticProgram(String languageId, String sourcePath, List<String> methodNames, List<String> declarationNames, List<String> methodCallEdges, int procDs2BlockCount, List<String> dataBlockNames, List<String> packageBlockNames, List<String> threadBlockNames, List<String> setFromSources) Creates an instance of aDs2SemanticProgramrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedataBlockNamesrecord component.Returns the value of thedeclarationNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelanguageIdrecord component.Returns the value of themethodCallEdgesrecord component.Returns the value of themethodNamesrecord component.Returns the value of thepackageBlockNamesrecord component.intReturns the value of theprocDs2BlockCountrecord component.Returns the value of thesetFromSourcesrecord component.Returns the value of thesourcePathrecord component.Returns the value of thethreadBlockNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Ds2SemanticProgram
public Ds2SemanticProgram(String languageId, String sourcePath, List<String> methodNames, List<String> declarationNames, List<String> methodCallEdges, int procDs2BlockCount, List<String> dataBlockNames, List<String> packageBlockNames, List<String> threadBlockNames, List<String> setFromSources) Creates an instance of aDs2SemanticProgramrecord class.- Parameters:
languageId- the value for thelanguageIdrecord componentsourcePath- the value for thesourcePathrecord componentmethodNames- the value for themethodNamesrecord componentdeclarationNames- the value for thedeclarationNamesrecord componentmethodCallEdges- the value for themethodCallEdgesrecord componentprocDs2BlockCount- the value for theprocDs2BlockCountrecord componentdataBlockNames- the value for thedataBlockNamesrecord componentpackageBlockNames- the value for thepackageBlockNamesrecord componentthreadBlockNames- the value for thethreadBlockNamesrecord componentsetFromSources- the value for thesetFromSourcesrecord 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
-
methodNames
Returns the value of themethodNamesrecord component.- Returns:
- the value of the
methodNamesrecord component
-
declarationNames
Returns the value of thedeclarationNamesrecord component.- Returns:
- the value of the
declarationNamesrecord component
-
methodCallEdges
Returns the value of themethodCallEdgesrecord component.- Returns:
- the value of the
methodCallEdgesrecord component
-
procDs2BlockCount
public int procDs2BlockCount()Returns the value of theprocDs2BlockCountrecord component.- Returns:
- the value of the
procDs2BlockCountrecord component
-
dataBlockNames
Returns the value of thedataBlockNamesrecord component.- Returns:
- the value of the
dataBlockNamesrecord component
-
packageBlockNames
Returns the value of thepackageBlockNamesrecord component.- Returns:
- the value of the
packageBlockNamesrecord component
-
threadBlockNames
Returns the value of thethreadBlockNamesrecord component.- Returns:
- the value of the
threadBlockNamesrecord component
-
setFromSources
Returns the value of thesetFromSourcesrecord component.- Returns:
- the value of the
setFromSourcesrecord component
-