Uses of Interface
spoon.reflect.visitor.chain.CtQuery
Packages that use CtQuery
Package
Description
This package defines the Spoon's compile-time meta-model of Java programs.
This package defines all the sub-factories for the Spoon meta-model.
This package contains a set of useful filters when querying the model.
-
Uses of CtQuery in spoon.reflect
Methods in spoon.reflect that return CtQueryModifier and TypeMethodDescriptionCtModelImpl.filterChildren(Filter<R> filter)
<I> CtQuery
CtModelImpl.map(CtConsumableFunction<I> queryStep)
<I, R> CtQuery
CtModelImpl.map(CtFunction<I,R> function)
-
Uses of CtQuery in spoon.reflect.factory
Methods in spoon.reflect.factory that return CtQueryModifier and TypeMethodDescriptionFactory.createQuery()
Factory.createQuery(Iterable<?> input)
Factory.createQuery(Object input)
Factory.createQuery(Object... input)
FactoryImpl.createQuery()
FactoryImpl.createQuery(Iterable<?> input)
FactoryImpl.createQuery(Object input)
FactoryImpl.createQuery(Object[] input)
QueryFactory.createQuery()
Creates a unbound query.QueryFactory.createQuery(Iterable<?> inputs)
Creates a bound query.QueryFactory.createQuery(Object input)
Creates a bound query.QueryFactory.createQuery(Object... input)
Creates a bound query with an optional number of inputs elements to the query (seesetInput(Object...)
) -
Uses of CtQuery in spoon.reflect.visitor.chain
Classes in spoon.reflect.visitor.chain that implement CtQueryModifier and TypeClassDescriptionclass
Methods in spoon.reflect.visitor.chain with type parameters of type CtQueryMethods in spoon.reflect.visitor.chain that return CtQueryModifier and TypeMethodDescriptionCtQuery.failurePolicy(QueryFailurePolicy policy)
Defines whether this query will throwClassCastException
when the output of the previous step cannot be cast to type of input of next step.CtQuery.filterChildren(Filter<R> filter)
Recursively scans all children elements of an input element.CtQueryable.filterChildren(Filter<R> filter)
<I> CtQuery
CtQuery.map(CtConsumableFunction<I> queryStep)
Same asmap(CtFunction)
, but the returned object is not handled by java's return statement, but by a call toCtConsumer.accept(Object)
, this allows efficient and easy to write chained processing, seeCtConsumableFunction
.<I, R> CtQuery
CtQuery.map(CtFunction<I,R> function)
Query elements based on a function, the behavior depends on the return type of the function.<I> CtQuery
CtQueryable.map(CtConsumableFunction<I> queryStep)
<I, R> CtQuery
CtQueryable.map(CtFunction<I,R> function)
Sets the name of current query, to identify the current step during debugging of a queryThe matched element for which (filter.matches(element)==true) is sent to the next query step.Methods in spoon.reflect.visitor.chain with parameters of type CtQueryModifier and TypeMethodDescriptionvoid
This method is called when the filter/function is added as a step to aCtQuery
by the query engine (CtQueryImpl
). -
Uses of CtQuery in spoon.reflect.visitor.filter
Methods in spoon.reflect.visitor.filter with parameters of type CtQueryModifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
-
Uses of CtQuery in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration that return CtQueryModifier and TypeMethodDescriptionCtElementImpl.filterChildren(Filter<P> predicate)
<I> CtQuery
CtElementImpl.map(CtConsumableFunction<I> queryStep)
<I, R> CtQuery
CtElementImpl.map(CtFunction<I,R> function)