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 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 a GretlScript record class.
      Parameters:
      uri - the value for the uri record component
      tasks - the value for the tasks record component
      defaultTasks - the value for the defaultTasks record component
      variables - the value for the variables record component
      parseProblems - the value for the parseProblems record component
      astBased - the value for the astBased record component
      scannerFallbackUsed - the value for the scannerFallbackUsed record component
  • Method Details

    • taskAt

      public Optional<GretlTaskBlock> taskAt(org.eclipse.lsp4j.Position position)
    • taskByName

      public Optional<GretlTaskBlock> taskByName(String name)
    • taskNames

      public Set<String> taskNames()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • uri

      public String uri()
      Returns the value of the uri record component.
      Returns:
      the value of the uri record component
    • tasks

      public List<GretlTaskBlock> tasks()
      Returns the value of the tasks record component.
      Returns:
      the value of the tasks record component
    • defaultTasks

      public List<DefaultTaskDeclaration> defaultTasks()
      Returns the value of the defaultTasks record component.
      Returns:
      the value of the defaultTasks record component
    • variables

      public List<GretlVariableDeclaration> variables()
      Returns the value of the variables record component.
      Returns:
      the value of the variables record component
    • parseProblems

      public List<GretlParseProblem> parseProblems()
      Returns the value of the parseProblems record component.
      Returns:
      the value of the parseProblems record component
    • astBased

      public boolean astBased()
      Returns the value of the astBased record component.
      Returns:
      the value of the astBased record component
    • scannerFallbackUsed

      public boolean scannerFallbackUsed()
      Returns the value of the scannerFallbackUsed record component.
      Returns:
      the value of the scannerFallbackUsed record component