Class VariableScopeFunction

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

public class VariableScopeFunction extends Object implements CtConsumableFunction<CtVariable<?>>
The mapping function, accepting CtVariable
  • CtLocalVariable - local variable declared in body
  • CtParameter - method parameter
  • CtCatchVariable - try - catch variable
and returning all the CtElements, which exists in visibility scope of this variable.