Class ParameterScopeFunction

All Implemented Interfaces:

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.
 CtParameter param = ...; ParameterScopeFunction()).forEach(...process result...);
  • Constructor Details

    • ParameterScopeFunction

      public ParameterScopeFunction()
    • ParameterScopeFunction

      public ParameterScopeFunction(CtScannerListener queryListener)
  • Method Details