Record Class Symbols.Result
java.lang.Object
java.lang.Record
org.clafer.frontend.Symbols.Result
- Record Components:
topLevel- the top-level symbols, in the order of the model, enumerations followed by their literalsall- all symbols, in pre-order of the declarationsbyDeclaration- the symbol of each declaration, by identitydiagnostics- the errors
- Enclosing class:
Symbols
public static record Symbols.Result(List<Symbols.ClaferSymbol> topLevel, List<Symbols.ClaferSymbol> all, Map<Syntax.Node, Symbols.ClaferSymbol> byDeclaration, List<Diagnostic> diagnostics)
extends Record
The symbols of a model.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(List<Symbols.ClaferSymbol> topLevel, List<Symbols.ClaferSymbol> all, Map<Syntax.Node, Symbols.ClaferSymbol> byDeclaration, List<Diagnostic> diagnostics) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionall()Returns the value of theallrecord component.Returns the value of thebyDeclarationrecord component.Returns the value of thediagnosticsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(Syntax.Node declaration) topLevel()Returns the value of thetopLevelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(List<Symbols.ClaferSymbol> topLevel, List<Symbols.ClaferSymbol> all, Map<Syntax.Node, Symbols.ClaferSymbol> byDeclaration, List<Diagnostic> diagnostics) Creates an instance of aResultrecord class.- Parameters:
topLevel- the value for thetopLevelrecord componentall- the value for theallrecord componentbyDeclaration- the value for thebyDeclarationrecord componentdiagnostics- the value for thediagnosticsrecord component
-
-
Method Details
-
of
- Parameters:
declaration- a clafer, a clafer use, an enumeration or the name of a literal- Returns:
- its symbol
-
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). -
topLevel
-
all
-
byDeclaration
Returns the value of thebyDeclarationrecord component.- Returns:
- the value of the
byDeclarationrecord component
-
diagnostics
Returns the value of thediagnosticsrecord component.- Returns:
- the value of the
diagnosticsrecord component
-