Package spoon.reflect.visitor.filter
Class ParameterScopeFunction
java.lang.Object
spoon.reflect.visitor.filter.ParameterScopeFunction
- All Implemented Interfaces:
CtConsumableFunction<CtParameter<?>>
This Query expects a
It can be used to search for variable declarations or variable references which might be in name conflict with input parameter.
Usage:
CtParameter
as input
and returns all CtElements,
which are in visibility scope of that parameter.
In other words, it returns all elements,
which might be reference to that parameter.
It can be used to search for variable declarations or variable references which might be in name conflict with input parameter.
Usage:
CtParameter param = ...;
param.map(new ParameterScopeFunction()).forEach(...process result...);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(CtParameter<?> parameter, CtConsumer<Object> outputConsumer)
Evaluates the function on the given input.
-
Constructor Details
-
ParameterScopeFunction
public ParameterScopeFunction() -
ParameterScopeFunction
-
-
Method Details
-
apply
Description copied from interface:CtConsumableFunction
Evaluates the function on the given input.- Specified by:
apply
in interfaceCtConsumableFunction<CtParameter<?>>
- Parameters:
parameter
- the input of the functionoutputConsumer
- the consumer which accepts the results of this function.
-