Package spoon.reflect.visitor.filter
Class FieldReferenceFunction
java.lang.Object
spoon.reflect.visitor.filter.FieldReferenceFunction
- All Implemented Interfaces:
CtConsumableFunction<CtElement>
- Direct Known Subclasses:
EnumValueReferenceFunction
This Query expects a
Usage:
CtField as input
and returns all CtFieldReferences, which refers this input.
Usage:
CtField param = ...;
param
.map(new FieldReferenceFunction())
.forEach((CtFieldReference ref)->...process references...);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(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:CtConsumableFunctionEvaluates the function on the given input.- Specified by:
applyin interfaceCtConsumableFunction<CtElement>- Parameters:
fieldOrScope- the input of the functionoutputConsumer- the consumer which accepts the results of this function.
-