Class ParameterScopeFunction

java.lang.Object
spoon.reflect.visitor.filter.ParameterScopeFunction
All Implemented Interfaces:
CtConsumableFunction<CtParameter<?>>

public class ParameterScopeFunction extends Object implements CtConsumableFunction<CtParameter<?>>
This Query expects a 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 Details

    • ParameterScopeFunction

      public ParameterScopeFunction()
    • ParameterScopeFunction

      public ParameterScopeFunction(CtScannerListener queryListener)
  • Method Details