public class ReuseParameters extends Object
IInstantiationBehavior
,
ParameterAccessor
Modifier and Type | Class and Description |
---|---|
static class |
ReuseParameters.ReuseParameter |
Constructor and Description |
---|
ReuseParameters(IInstantiationBehavior instanceBehavior,
AndroidModel forModel) |
Modifier and Type | Method and Description |
---|---|
void |
collectParameters(Iterable<? extends Entrypoint> entrypoints)
Searches the given entrypoints for those parameters.
|
boolean |
isReuse(TypeName param,
IMethod inCallTo)
Is the parameter REUSE in a call from forModel to inCallTo.
|
MethodReference |
toMethodReference(AndroidModelParameterManager pm) |
public ReuseParameters(IInstantiationBehavior instanceBehavior, AndroidModel forModel)
instanceBehavior
- The Behavior to query if the parameter is REUSEforModel
- The AndroidModel in which context the status is to be determinedpublic void collectParameters(Iterable<? extends Entrypoint> entrypoints)
entrypoints
- The entrypoints to consider in the search.public boolean isReuse(TypeName param, IMethod inCallTo)
param
- The parameter in question of being reuseinCallTo
- The callee to query the REUSEness forpublic MethodReference toMethodReference(AndroidModelParameterManager pm)