Record Class DirectiveSpec
java.lang.Object
java.lang.Record
org.ek9lang.compiler.directives.DirectiveSpec
public record DirectiveSpec(IToken token, CompilationPhase phase, SymbolCategory symbolCategory, String symbolName, String additionalName, int lineNumber)
extends Record
Specification of a directive, all the common details used in a range of directives.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectiveSpec(IToken token, CompilationPhase phase, SymbolCategory symbolCategory, String symbolName, String additionalName, int lineNumber) Creates an instance of aDirectiveSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineNumberrecord component.phase()Returns the value of thephaserecord component.Returns the value of thesymbolCategoryrecord component.Returns the value of thesymbolNamerecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectiveSpec
public DirectiveSpec(IToken token, CompilationPhase phase, SymbolCategory symbolCategory, String symbolName, String additionalName, int lineNumber) Creates an instance of aDirectiveSpecrecord class.- Parameters:
token- the value for thetokenrecord componentphase- the value for thephaserecord componentsymbolCategory- the value for thesymbolCategoryrecord componentsymbolName- the value for thesymbolNamerecord componentadditionalName- the value for theadditionalNamerecord componentlineNumber- the value for thelineNumberrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
phase
Returns the value of thephaserecord component.- Returns:
- the value of the
phaserecord component
-
symbolCategory
Returns the value of thesymbolCategoryrecord component.- Returns:
- the value of the
symbolCategoryrecord component
-
symbolName
Returns the value of thesymbolNamerecord component.- Returns:
- the value of the
symbolNamerecord component
-
additionalName
Returns the value of theadditionalNamerecord component.- Returns:
- the value of the
additionalNamerecord component
-
lineNumber
public int lineNumber()Returns the value of thelineNumberrecord component.- Returns:
- the value of the
lineNumberrecord component
-