public class CatchVariableScopeFunction extends java.lang.Object implements CtConsumableFunction<CtCatchVariable<?>>
CtCatchVariable
as input
and returns all CtElements,
which are in visibility scope of that catch variable.
In other words, it returns all elements,
which might be reference to that catch variable.
CtCatchVariable var = ...;
var.map(new CatchVariableScopeFunction()).forEach(...process result...);
Constructor and Description |
---|
CatchVariableScopeFunction() |
CatchVariableScopeFunction(CtScannerListener queryListener) |
Modifier and Type | Method and Description |
---|---|
void |
apply(CtCatchVariable<?> catchVariable,
CtConsumer<java.lang.Object> outputConsumer)
Evaluates the function on the given input.
|
public CatchVariableScopeFunction()
public CatchVariableScopeFunction(CtScannerListener queryListener)
public void apply(CtCatchVariable<?> catchVariable, CtConsumer<java.lang.Object> outputConsumer)
CtConsumableFunction
apply
in interface CtConsumableFunction<CtCatchVariable<?>>
catchVariable
- the input of the functionoutputConsumer
- the consumer which accepts the results of this function.Copyright © 2007–2021 Inria. All rights reserved.