Package ch.so.agi.gretl.lsp.model
Record Class GretlTaskBlock
java.lang.Object
java.lang.Record
ch.so.agi.gretl.lsp.model.GretlTaskBlock
public record GretlTaskBlock(String name, Optional<String> typeName, org.eclipse.lsp4j.Range nameRange, org.eclipse.lsp4j.Range typeRange, org.eclipse.lsp4j.Range fullRange, org.eclipse.lsp4j.Range bodyRange, List<GretlDslCall> calls, List<GretlDependency> dependencies, List<GretlExpression> rawExpressions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGretlTaskBlock(String name, Optional<String> typeName, org.eclipse.lsp4j.Range nameRange, org.eclipse.lsp4j.Range typeRange, org.eclipse.lsp4j.Range fullRange, org.eclipse.lsp4j.Range bodyRange, List<GretlDslCall> calls, List<GretlDependency> dependencies, List<GretlExpression> rawExpressions) Creates an instance of aGretlTaskBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.RangeReturns the value of thebodyRangerecord component.calls()Returns the value of thecallsrecord component.callsByName(String name) Returns the value of thedependenciesrecord component.final booleanIndicates whether some other object is "equal to" this one.org.eclipse.lsp4j.RangeReturns the value of thefullRangerecord component.booleanfinal inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.org.eclipse.lsp4j.RangeReturns the value of thenameRangerecord component.Returns the value of therawExpressionsrecord component.final StringtoString()Returns a string representation of this record class.typeName()Returns the value of thetypeNamerecord component.org.eclipse.lsp4j.RangeReturns the value of thetypeRangerecord component.
-
Constructor Details
-
GretlTaskBlock
public GretlTaskBlock(String name, Optional<String> typeName, org.eclipse.lsp4j.Range nameRange, org.eclipse.lsp4j.Range typeRange, org.eclipse.lsp4j.Range fullRange, org.eclipse.lsp4j.Range bodyRange, List<GretlDslCall> calls, List<GretlDependency> dependencies, List<GretlExpression> rawExpressions) Creates an instance of aGretlTaskBlockrecord class.- Parameters:
name- the value for thenamerecord componenttypeName- the value for thetypeNamerecord componentnameRange- the value for thenameRangerecord componenttypeRange- the value for thetypeRangerecord componentfullRange- the value for thefullRangerecord componentbodyRange- the value for thebodyRangerecord componentcalls- the value for thecallsrecord componentdependencies- the value for thedependenciesrecord componentrawExpressions- the value for therawExpressionsrecord component
-
-
Method Details
-
callsByName
-
hasCall
-
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. 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
-
typeName
Returns the value of thetypeNamerecord component.- Returns:
- the value of the
typeNamerecord component
-
nameRange
public org.eclipse.lsp4j.Range nameRange()Returns the value of thenameRangerecord component.- Returns:
- the value of the
nameRangerecord component
-
typeRange
public org.eclipse.lsp4j.Range typeRange()Returns the value of thetypeRangerecord component.- Returns:
- the value of the
typeRangerecord component
-
fullRange
public org.eclipse.lsp4j.Range fullRange()Returns the value of thefullRangerecord component.- Returns:
- the value of the
fullRangerecord component
-
bodyRange
public org.eclipse.lsp4j.Range bodyRange()Returns the value of thebodyRangerecord component.- Returns:
- the value of the
bodyRangerecord component
-
calls
Returns the value of thecallsrecord component.- Returns:
- the value of the
callsrecord component
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
rawExpressions
Returns the value of therawExpressionsrecord component.- Returns:
- the value of the
rawExpressionsrecord component
-