Package spoon.reflect.visitor.filter
Class FieldReferenceFunction
java.lang.Object
spoon.reflect.visitor.filter.FieldReferenceFunction
- All Implemented Interfaces:
CtConsumableFunction<CtElement>
This Query expects a
Usage:
CtField
as input
and returns all CtFieldReference
s, which refers this input.
Usage:
CtField param = ...;
param
.map(new FieldReferenceFunction())
.forEach((CtFieldReference ref)->...process references...);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply(CtElement fieldOrScope, CtConsumer<Object> outputConsumer)
Evaluates the function on the given input.
-
Constructor Details
-
FieldReferenceFunction
public FieldReferenceFunction() -
FieldReferenceFunction
-
-
Method Details
-
apply
Description copied from interface:CtConsumableFunction
Evaluates the function on the given input.- Specified by:
apply
in interfaceCtConsumableFunction<CtElement>
- Parameters:
fieldOrScope
- the input of the functionoutputConsumer
- the consumer which accepts the results of this function.
-