Interface CanRemoveReceiver
-
- All Known Implementing Classes:
CFGCall
,NativeCall
public interface CanRemoveReceiver
Marker forCall
s whose first parameter can be removed. This happens when theCall.CallType
of anUnresolvedCall
isCall.CallType.UNKNOWN
, and a match is found among non-instance code members by theCallGraph
. In this case, the first parameter (that is supposed to be the receiver for instance calls) is removed from the list of parameters, and its string value is used as qualifier for the resolved call.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description TruncatedParamsCall
removeFirstParameter()
Yields an instance ofTruncatedParamsCall
that wraps a copy of the receiver of this call up to the parameters, where the first one has been removed.static Expression[]
truncate(Expression[] parameters)
Truncates the given array of expressions by removing the first element.
-
-
-
Method Detail
-
removeFirstParameter
TruncatedParamsCall removeFirstParameter()
Yields an instance ofTruncatedParamsCall
that wraps a copy of the receiver of this call up to the parameters, where the first one has been removed.- Returns:
- the call wrapping the copy of this one
-
truncate
static Expression[] truncate(Expression[] parameters)
Truncates the given array of expressions by removing the first element.- Parameters:
parameters
- the original array of expressions- Returns:
- the truncated array
-
-