io.sarl.lang.typesystem.cast
Interface ICastOperationCandidateSelector
All Known Implementing Classes:
ObjectAndPrimitiveBasedCastOperationCandidateSelector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
@java.lang.FunctionalInterface
interface ICastOperationCandidateSelector
Select the functions that should be called in place of a classic cast operator.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.9
Nested Type Summary
Modifier and type Type and description
interface ICastOperationCandidateSelector.ISelector
Do the selection of a specific operation description.
Action Summary
Modifier and type Action and description
abstract ISelector prepare(AbstractTypeComputationState,LightweightTypeReference,LightweightTypeReference)
Replies if the given description is a valid candidate for a cast linked operation.
Action Details
prepare(AbstractTypeComputationState,LightweightTypeReference,LightweightTypeReference)
def prepare(AbstractTypeComputationState,LightweightTypeReference,LightweightTypeReference) : ISelector
Replies if the given description is a valid candidate for a cast linked operation.
Parameters:
state - the current state of the type computation.
castType - the target type.
expressionType - the type of the expression to cast.
Returns:
the validator, never null .