Class AbstractCallExpression.ConvertibleOperation
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.expressions.AbstractCallExpression.ConvertibleOperation
-
- Enclosing class:
- AbstractCallExpression
private static class AbstractCallExpression.ConvertibleOperation extends java.lang.ObjectStores an operation as well as the required type conversion operations.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private IMetaOperation[]conversionsprivate IMetaOperationoperation
-
Constructor Summary
Constructors Constructor Description ConvertibleOperation(IMetaOperation operation, IMetaOperation[] conversions)Creates a convertible operation instance describing the operation as well as the required conversions per parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetScore(CallArgument[] arguments, int unnamedArgsCount)Returns the conversions core to compare similar canidates.
-
-
-
Field Detail
-
operation
private IMetaOperation operation
-
conversions
private IMetaOperation[] conversions
-
-
Constructor Detail
-
ConvertibleOperation
ConvertibleOperation(IMetaOperation operation, IMetaOperation[] conversions)
Creates a convertible operation instance describing the operation as well as the required conversions per parameter.- Parameters:
operation- the candidate operation resolving this call expressionconversions- the conversion operations (may contain null values if a conversion for a specific parameter is not required)
-
-
Method Detail
-
getScore
public int getScore(CallArgument[] arguments, int unnamedArgsCount) throws VilException
Returns the conversions core to compare similar canidates.- Parameters:
arguments- the actual argumentsunnamedArgsCount- the number of unnamed arguments inarguments- Returns:
- the number of conversions
- Throws:
VilException- in case that types cannot be inferred
-
-