Package spoon.reflect.visitor.filter
Class ParameterReferenceFunction
java.lang.Object
spoon.reflect.visitor.filter.LocalVariableReferenceFunction
spoon.reflect.visitor.filter.ParameterReferenceFunction
- All Implemented Interfaces:
CtConsumableFunction<CtElement>
This Query expects a
Usage:
CtParameter
as input
and returns all CtParameterReference
s, which refers this input.
Usage:
CtParameter param = ...;
param
.map(new ParameterReferenceFunction())
.forEach((CtParameterReference ref)->...process references...);
-
Constructor Summary
ConstructorDescriptionParameterReferenceFunction(CtParameter<?> parameter)
This constructor allows to define target parameter - the one for which this function will search for. -
Method Summary
Methods inherited from class spoon.reflect.visitor.filter.LocalVariableReferenceFunction
apply
-
Constructor Details
-
ParameterReferenceFunction
public ParameterReferenceFunction() -
ParameterReferenceFunction
This constructor allows to define target parameter - the one for which this function will search for. In such case the input of mapping function represents the searching scope- Parameters:
parameter
- - the parameter declaration which is searched in scope of input element
-