Record Class MutatedOnlyVariables.ReturningCallable
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.MutatedOnlyVariables.ReturningCallable
- Enclosing class:
MutatedOnlyVariables
static record MutatedOnlyVariables.ReturningCallable(ParsedModule parsedModule, ScopedSymbol callable, List<EK9Parser.ExpressionContext> sources)
extends Record
A user method, operator, function or dynamic function with a returning variable, and every expression that
variable is made to refer to.
-
Constructor Summary
ConstructorsConstructorDescriptionReturningCallable(ParsedModule parsedModule, ScopedSymbol callable, List<EK9Parser.ExpressionContext> sources) Creates an instance of aReturningCallablerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallable()Returns the value of thecallablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) booleanA method or operator of an aggregate (dynamic classes included): the callables that have a receiver.Returns the value of theparsedModulerecord component.(package private) VariableSymbolThe returning variable whose sources these are.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReturningCallable
ReturningCallable(ParsedModule parsedModule, ScopedSymbol callable, List<EK9Parser.ExpressionContext> sources) Creates an instance of aReturningCallablerecord class.- Parameters:
parsedModule- the value for theparsedModulerecord componentcallable- the value for thecallablerecord componentsources- the value for thesourcesrecord component
-
-
Method Details
-
returningSymbol
VariableSymbol returningSymbol()The returning variable whose sources these are. -
isAggregateMember
boolean isAggregateMember()A method or operator of an aggregate (dynamic classes included): the callables that have a receiver. -
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). -
parsedModule
Returns the value of theparsedModulerecord component.- Returns:
- the value of the
parsedModulerecord component
-
callable
Returns the value of thecallablerecord component.- Returns:
- the value of the
callablerecord component
-
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-