Uses of Interface
spoon.reflect.visitor.chain.CtConsumer
Package
Description
This package contains a set of useful filters when querying the model.
This package defines a framework for well-typed pure-Java templates.
-
Uses of CtConsumer in spoon.pattern
Modifier and TypeMethodDescriptionvoid
Pattern.forEachMatch(Object input, CtConsumer<Match> consumer)
Finds all target program sub-trees that correspond to a template and calls consumer.accept(Match) -
Uses of CtConsumer in spoon.pattern.internal.matcher
ModifierConstructorDescriptionMatchingScanner(ListOfNodes pattern, CtConsumer<? super Match> matchConsumer)
-
Uses of CtConsumer in spoon.reflect.visitor.chain
Modifier and TypeMethodDescriptionvoid
CtConsumableFunction.apply(T input, CtConsumer<Object> outputConsumer)
Evaluates the function on the given input.<I, R> void
CtQueryImpl.evaluate(I input, CtConsumer<R> outputConsumer)
Evaluates this query, ignoring bound input - if any<R> void
CtQuery.forEach(CtConsumer<R> consumer)
Actually evaluates the query and for each produced output element of the last step, calls `consumer.accept(outputElement)`.<R> void
CtQueryImpl.forEach(CtConsumer<R> consumer)
-
Uses of CtConsumer in spoon.reflect.visitor.filter
Modifier and TypeFieldDescriptionprotected CtConsumer<Object>
VariableReferenceFunction.outputConsumer
protected CtConsumer<Object>
VariableScopeFunction.outputConsumer
Modifier and TypeMethodDescriptionvoid
AllMethodsSameSignatureFunction.apply(CtExecutable<?> targetExecutable, CtConsumer<Object> outputConsumer)
void
AllTypeMembersFunction.apply(CtTypeInformation input, CtConsumer<Object> outputConsumer)
void
CatchVariableScopeFunction.apply(CtCatchVariable<?> catchVariable, CtConsumer<Object> outputConsumer)
void
CtScannerFunction.apply(CtElement input, CtConsumer<Object> outputConsumer)
void
FieldReferenceFunction.apply(CtElement fieldOrScope, CtConsumer<Object> outputConsumer)
void
FieldScopeFunction.apply(CtField<?> field, CtConsumer<Object> outputConsumer)
void
LocalVariableReferenceFunction.apply(CtElement scope, CtConsumer<Object> outputConsumer)
void
LocalVariableScopeFunction.apply(CtLocalVariable<?> localVariable, CtConsumer<Object> outputConsumer)
void
OverriddenMethodQuery.apply(CtMethod<?> input, CtConsumer<Object> outputConsumer)
void
ParameterScopeFunction.apply(CtParameter<?> parameter, CtConsumer<Object> outputConsumer)
void
ParentFunction.apply(CtElement input, CtConsumer<Object> outputConsumer)
void
PotentialVariableDeclarationFunction.apply(CtElement input, CtConsumer<Object> outputConsumer)
void
SiblingsFunction.apply(CtElement input, CtConsumer<Object> outputConsumer)
void
SubInheritanceHierarchyFunction.apply(CtTypeInformation input, CtConsumer<Object> outputConsumer)
void
SuperInheritanceHierarchyFunction.apply(CtTypeInformation input, CtConsumer<Object> outputConsumer)
void
VariableReferenceFunction.apply(CtElement variableOrScope, CtConsumer<Object> outputConsumer)
void
VariableScopeFunction.apply(CtVariable<?> variable, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPackageProtectedField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPrivateField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForProtectedField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
FieldScopeFunction.searchForPublicField(CtField<?> field, CtConsumer<Object> outputConsumer)
protected void
SuperInheritanceHierarchyFunction.sendResult(CtTypeReference<?> typeRef, CtConsumer<Object> outputConsumer)
protected void
SuperInheritanceHierarchyFunction.visitSuperClasses(CtTypeReference<?> superTypeRef, CtConsumer<Object> outputConsumer, boolean includingInterfaces)
calls `outputConsumer.accept(superClass)` for all super classes of superType.protected void
SuperInheritanceHierarchyFunction.visitSuperInterfaces(CtTypeReference<?> type, CtConsumer<Object> outputConsumer)
calls `outputConsumer.accept(interface)` for all superInterfaces of type recursively. -
Uses of CtConsumer in spoon.support.visitor
Modifier and TypeMethodDescription<T extends CtType<?>>
voidSubInheritanceHierarchyResolver.forEachSubTypeInPackage(CtConsumer<T> outputConsumer)
Calls `outputConsumer.apply(subType)` for each sub type of the targetSuperTypes that are found in `inputPackage`. -
Uses of CtConsumer in spoon.template
Modifier and TypeMethodDescriptionvoid
TemplateMatcher.forEachMatch(CtElement rootElement, CtConsumer<Match> consumer)
Finds all target program sub-trees that correspond to a template and calls consumer.accept(matchingElement, )