Package ch.so.agi.gretl.lsp.model
Record Class GretlScript
java.lang.Object
java.lang.Record
ch.so.agi.gretl.lsp.model.GretlScript
public record GretlScript(String uri, List<GretlTaskBlock> tasks, List<DefaultTaskDeclaration> defaultTasks, List<GretlVariableDeclaration> variables, List<GretlParseProblem> parseProblems, boolean astBased, boolean scannerFallbackUsed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGretlScript(String uri, List<GretlTaskBlock> tasks, List<DefaultTaskDeclaration> defaultTasks, List<GretlVariableDeclaration> variables, List<GretlParseProblem> parseProblems, boolean astBased, boolean scannerFallbackUsed) Creates an instance of aGretlScriptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanastBased()Returns the value of theastBasedrecord component.Returns the value of thedefaultTasksrecord 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 theparseProblemsrecord component.booleanReturns the value of thescannerFallbackUsedrecord component.taskAt(org.eclipse.lsp4j.Position position) taskByName(String name) tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.Returns the value of thevariablesrecord component.
-
Constructor Details
-
GretlScript
public GretlScript(String uri, List<GretlTaskBlock> tasks, List<DefaultTaskDeclaration> defaultTasks, List<GretlVariableDeclaration> variables, List<GretlParseProblem> parseProblems, boolean astBased, boolean scannerFallbackUsed) Creates an instance of aGretlScriptrecord class.- Parameters:
uri- the value for theurirecord componenttasks- the value for thetasksrecord componentdefaultTasks- the value for thedefaultTasksrecord componentvariables- the value for thevariablesrecord componentparseProblems- the value for theparseProblemsrecord componentastBased- the value for theastBasedrecord componentscannerFallbackUsed- the value for thescannerFallbackUsedrecord component
-
-
Method Details
-
taskAt
-
taskByName
-
taskNames
-
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 '=='. -
uri
Returns the value of theurirecord component.- Returns:
- the value of the
urirecord component
-
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
defaultTasks
Returns the value of thedefaultTasksrecord component.- Returns:
- the value of the
defaultTasksrecord component
-
variables
Returns the value of thevariablesrecord component.- Returns:
- the value of the
variablesrecord component
-
parseProblems
Returns the value of theparseProblemsrecord component.- Returns:
- the value of the
parseProblemsrecord component
-
astBased
public boolean astBased()Returns the value of theastBasedrecord component.- Returns:
- the value of the
astBasedrecord component
-
scannerFallbackUsed
public boolean scannerFallbackUsed()Returns the value of thescannerFallbackUsedrecord component.- Returns:
- the value of the
scannerFallbackUsedrecord component
-