Package org.ek9lang.compiler.support
Record Class SymbolSearchConfiguration
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.SymbolSearchConfiguration
public record SymbolSearchConfiguration(String mainSymbolName, List<SymbolSearchConfiguration> parameterizingArguments)
extends Record
Can be used for a single Simple named search.
Or with parameter types for a generic type.
-
Constructor Summary
ConstructorDescriptionSymbolSearchConfiguration
(String mainSymbolName) Basic non parametric constructor, so just simple types.SymbolSearchConfiguration
(String mainSymbolName, List<SymbolSearchConfiguration> parameterizingArguments) Creates an instance of aSymbolSearchConfiguration
record class.SymbolSearchConfiguration
(String mainSymbolName, SymbolSearchConfiguration parameter) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Simple search by name, or generic with polymorphic parameterization.Returns the value of themainSymbolName
record component.Returns the value of theparameterizingArguments
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
SymbolSearchConfiguration
-
SymbolSearchConfiguration
Basic non parametric constructor, so just simple types. -
SymbolSearchConfiguration
public SymbolSearchConfiguration(String mainSymbolName, List<SymbolSearchConfiguration> parameterizingArguments) Creates an instance of aSymbolSearchConfiguration
record class.- Parameters:
mainSymbolName
- the value for themainSymbolName
record componentparameterizingArguments
- the value for theparameterizingArguments
record component
-
-
Method Details
-
isParametric
public boolean isParametric()Simple search by name, or generic with polymorphic parameterization. -
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)
. -
mainSymbolName
Returns the value of themainSymbolName
record component.- Returns:
- the value of the
mainSymbolName
record component
-
parameterizingArguments
Returns the value of theparameterizingArguments
record component.- Returns:
- the value of the
parameterizingArguments
record component
-