Package spoon.reflect.factory
Class QueryFactory
java.lang.Object
spoon.reflect.factory.SubFactory
spoon.reflect.factory.QueryFactory
A factory to create some queries on the Spoon metamodel.
-
Field Summary
Fields inherited from class spoon.reflect.factory.SubFactory
factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a unbound query.createQuery(Iterable<?> inputs)Creates a bound query.createQuery(Object input)Creates a bound query.createQuery(Object... input)Creates a bound query with an optional number of inputs elements to the query (seeCtQuery.setInput(Object...))
-
Constructor Details
-
QueryFactory
Creates the evaluation factory.
-
-
Method Details
-
createQuery
Creates a unbound query. UseCtQuery.setInput(Object...)beforeCtQuery.forEach(spoon.reflect.visitor.chain.CtConsumer)orCtQuery.list()is called -
createQuery
Creates a bound query. Use directlyCtQuery.forEach(spoon.reflect.visitor.chain.CtConsumer)orCtQuery.list()to evaluate the query -
createQuery
Creates a bound query. Use directlyCtQuery.forEach(spoon.reflect.visitor.chain.CtConsumer)orCtQuery.list()to evaluate the query -
createQuery
Creates a bound query with an optional number of inputs elements to the query (seeCtQuery.setInput(Object...))
-