Package spoon.reflect.visitor.filter
Class VariableReferenceFunction
java.lang.Object
spoon.reflect.visitor.filter.VariableReferenceFunction
- All Implemented Interfaces:
CtConsumableFunction<CtElement>
The mapping function, accepting
CtVariable
- CtLocalVariable - local variable declared in body
- CtField - member field of an type
- CtParameter - method parameter
- CtCatchVariable - try - catch variable
CtVariableReference
, which refers this variable-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected CtConsumer<Object>
protected CtElement
protected VariableReferenceFunction.Visitor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(CtElement variableOrScope, CtConsumer<Object> outputConsumer)
Evaluates the function on the given input.
-
Field Details
-
visitor
-
outputConsumer
-
scope
-
-
Constructor Details
-
VariableReferenceFunction
public VariableReferenceFunction() -
VariableReferenceFunction
-
-
Method Details
-
apply
Description copied from interface:CtConsumableFunction
Evaluates the function on the given input.- Specified by:
apply
in interfaceCtConsumableFunction<CtElement>
- Parameters:
variableOrScope
- the input of the functionoutputConsumer
- the consumer which accepts the results of this function.
-