Record Class DiagnosticSnapshot.SymbolInfo
java.lang.Object
java.lang.Record
ca.mcscert.jpipe.compiler.model.DiagnosticSnapshot.SymbolInfo
- Record Components:
id- the element's id within its model.kind- element type, kebab-case (e.g."sub-conclusion").location- where the element is declared, orSourceLocation.UNKNOWNwhen it was synthesized during template expansion or composition.
- Enclosing class:
DiagnosticSnapshot
public static record DiagnosticSnapshot.SymbolInfo(String id, String kind, SourceLocation location)
extends Record
One entry of a model's symbol table.
-
Constructor Summary
ConstructorsConstructorDescriptionSymbolInfo(String id, String kind, SourceLocation location) Creates an instance of aSymbolInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanTrue when the element has no source location of its own.kind()Returns the value of thekindrecord component.location()Returns the value of thelocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SymbolInfo
-
-
Method Details
-
isSynthesized
public boolean isSynthesized()True when the element has no source location of its own. -
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). -
id
-
kind
-
location
-