Record Class MethodSearchInScope
java.lang.Object
java.lang.Record
org.ek9lang.compiler.search.MethodSearchInScope
Simple record tuple to combine the scope to be searched and the method signature to be searched for.
-
Constructor Summary
ConstructorsConstructorDescriptionMethodSearchInScope(IScope scopeToSearch, MethodSymbolSearch search) Creates an instance of aMethodSearchInScoperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thescopeToSearchrecord component.search()Returns the value of thesearchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodSearchInScope
Creates an instance of aMethodSearchInScoperecord class.- Parameters:
scopeToSearch- the value for thescopeToSearchrecord componentsearch- the value for thesearchrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
scopeToSearch
Returns the value of thescopeToSearchrecord component.- Returns:
- the value of the
scopeToSearchrecord component
-
search
Returns the value of thesearchrecord component.- Returns:
- the value of the
searchrecord component
-