Uses of Class
org.ek9lang.compiler.symbols.PossibleGenericSymbol
Package
Description
B - For the EK9 compiler itself.
Common parts of processing that can be reused across various phases.
G - Full Symbol Resolution can now take place.
Contains critical general components used in the
Ek9Compiler
listeners.
This is the main source of EK9 Symbols used within the compiler.
-
Uses of PossibleGenericSymbol in org.ek9lang.compiler
Modifier and TypeMethodDescriptionResolvedOrDefineResult.symbol()
Returns the value of thesymbol
record component.Modifier and TypeMethodDescriptionCompilableProgram.resolveOrDefine
(PossibleGenericSymbol possibleGenericSymbol) When using generic types, the parameterised type goes into the same module namespace as the Generic Type.ModifierConstructorDescriptionResolvedOrDefineResult
(Optional<PossibleGenericSymbol> symbol, boolean newlyDefined) Creates an instance of aResolvedOrDefineResult
record class. -
Uses of PossibleGenericSymbol in org.ek9lang.compiler.common
Modifier and TypeMethodDescriptionSymbolsAndScopes.resolveOrDefine
(PossibleGenericSymbol parameterisedSymbol, ErrorListener errorListener) -
Uses of PossibleGenericSymbol in org.ek9lang.compiler.phase3
Modifier and TypeMethodDescription -
Uses of PossibleGenericSymbol in org.ek9lang.compiler.phase4
Modifier and TypeMethodDescriptionvoid
ParameterisedTypeOrError.accept
(PossibleGenericSymbol possibleGenericSymbol) -
Uses of PossibleGenericSymbol in org.ek9lang.compiler.support
Modifier and TypeMethodDescriptionParameterizedSymbolCreator.apply
(PossibleGenericSymbol possibleGenericSymbol, List<ISymbol> typeArguments) TypeSubstitution.apply
(PossibleGenericSymbol parameterisedSymbol) GenericInGenericData.dependent()
Returns the value of thedependent
record component.SymbolFactory.newParameterisedSymbol
(PossibleGenericSymbol genericType, List<ISymbol> typeArguments) GenericInGenericData.parent()
Returns the value of theparent
record component.Modifier and TypeMethodDescriptionInternalNameFor.apply
(PossibleGenericSymbol possibleGenericSymbol, List<ISymbol> typeArguments) NameForParameterisedType.apply
(PossibleGenericSymbol possibleGenericSymbol, List<ISymbol> typeArguments) ParameterizedSymbolCreator.apply
(PossibleGenericSymbol possibleGenericSymbol, List<ISymbol> typeArguments) TypeSubstitution.apply
(PossibleGenericSymbol parameterisedSymbol) SymbolFactory.newParameterisedSymbol
(PossibleGenericSymbol genericType, List<ISymbol> typeArguments) ModifierConstructorDescriptionGenericInGenericData
(PossibleGenericSymbol parent, PossibleGenericSymbol dependent) Creates an instance of aGenericInGenericData
record class.ModifierConstructorDescriptionParameterizedSymbolCreator
(BiFunction<PossibleGenericSymbol, List<ISymbol>, String> internalNameFor) TypeSubstitution
(Function<PossibleGenericSymbol, ResolvedOrDefineResult> resolveOrDefine, ErrorListener errorListener) Construct a type substitutor. -
Uses of PossibleGenericSymbol in org.ek9lang.compiler.symbols
Modifier and TypeClassDescriptionclass
This is typically a 'class' or an interface type where it can include the definitions of new properties.class
An aggregate, but one that can have zero or more traits (like interfaces).class
Scope for functions that are part of a module.Modifier and TypeMethodDescriptionprotected PossibleGenericSymbol
PossibleGenericSymbol.cloneIntoPossibleGenericSymbol
(PossibleGenericSymbol newCopy) Modifier and TypeMethodDescriptionICanBeGeneric.getGenericSymbolReferences()
Used to keep track of any generic types/functions used in a generic type that use some or all of the generic type parameters or arguments.PossibleGenericSymbol.getGenericSymbolReferences()
ICanBeGeneric.getGenericType()
Not only can a class/function that implements this interface be generic in nature, they can also be a 'parameterised type'.PossibleGenericSymbol.getGenericType()
Modifier and TypeMethodDescriptionvoid
ICanBeGeneric.addGenericSymbolReference
(PossibleGenericSymbol genericSymbolReference) Provides a mechanism to record 'dependent generic types'.void
PossibleGenericSymbol.addGenericSymbolReference
(PossibleGenericSymbol genericSymbolReference) Add a reference to a parameterised function.protected PossibleGenericSymbol
PossibleGenericSymbol.cloneIntoPossibleGenericSymbol
(PossibleGenericSymbol newCopy) ModuleScope.resolveOrDefine
(PossibleGenericSymbol parameterisedSymbol, ErrorListener errorListener) Used when resolving or needing to define a parameterised type, like 'List of String' for example.void
PossibleGenericSymbol.setGenericType
(PossibleGenericSymbol genericType) Modifier and TypeMethodDescriptionvoid
PossibleGenericSymbol.setGenericType
(Optional<PossibleGenericSymbol> genericType) Used parameterizing a generic type with type arguments.