Class FirstRuntimeThenStaticStaticResolution
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.call.resolution.FixedOrderResolution
-
- it.unive.lisa.program.cfg.statement.call.resolution.FirstRuntimeThenStaticStaticResolution
-
- All Implemented Interfaces:
ResolutionStrategy
public class FirstRuntimeThenStaticStaticResolution extends FixedOrderResolution
A strategy where the first parameter is tested usingRuntimeTypesResolution, while the rest is tested usingStaticTypesResolution, achieving Java-like resolution.
-
-
Field Summary
Fields Modifier and Type Field Description static FirstRuntimeThenStaticStaticResolutionINSTANCEThe singleton instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanmatches(int pos, Parameter formal, Expression actual)Yieldstrueif and only if the signature of thepos-th parameter of a cfg is matched by the given actual parameter, according to this strategy.-
Methods inherited from class it.unive.lisa.program.cfg.statement.call.resolution.FixedOrderResolution
matches
-
-
-
-
Field Detail
-
INSTANCE
public static final FirstRuntimeThenStaticStaticResolution INSTANCE
The singleton instance of this class.
-
-
Method Detail
-
matches
protected boolean matches(int pos, Parameter formal, Expression actual)Description copied from class:FixedOrderResolutionYieldstrueif and only if the signature of thepos-th parameter of a cfg is matched by the given actual parameter, according to this strategy.- Specified by:
matchesin classFixedOrderResolution- Parameters:
pos- the position of the parameter being evaluatedformal- the parameter definition of the cfgactual- the expression that is used as parameter- Returns:
trueif and only if that condition holds
-
-