Record Class ScriptLanguageService.Symbol
java.lang.Object
java.lang.Record
de.gurkenlabs.litiengine.scripting.ScriptLanguageService.Symbol
- Enclosing interface:
ScriptLanguageService
public static record ScriptLanguageService.Symbol(String name, ScriptLanguageService.SymbolKind kind, String detail, ScriptLanguageService.Range range, List<ScriptLanguageService.Symbol> children)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSymbol(String name, ScriptLanguageService.SymbolKind kind, String detail, ScriptLanguageService.Range range, List<ScriptLanguageService.Symbol> children) Creates an instance of aSymbolrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Returns the value of thechildrenrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.range()Returns the value of therangerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Symbol
public Symbol(String name, ScriptLanguageService.SymbolKind kind, String detail, ScriptLanguageService.Range range, List<ScriptLanguageService.Symbol> children) Creates an instance of aSymbolrecord class.- Parameters:
name- the value for thenamerecord componentkind- the value for thekindrecord componentdetail- the value for thedetailrecord componentrange- the value for therangerecord componentchildren- the value for thechildrenrecord component
-
-
Method Details
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
range
Returns the value of therangerecord component.- Returns:
- the value of the
rangerecord component
-
children
Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-