Uses of Interface
spoon.reflect.visitor.chain.CtConsumableFunction
Packages that use CtConsumableFunction
Package
Description
This package defines the Spoon's compile-time meta-model of Java programs.
This package contains a set of useful filters when querying the model.
-
Uses of CtConsumableFunction in spoon.reflect
Methods in spoon.reflect with parameters of type CtConsumableFunctionModifier and TypeMethodDescription<I> CtQuery
CtModelImpl.map(CtConsumableFunction<I> queryStep)
-
Uses of CtConsumableFunction in spoon.reflect.visitor.chain
Methods in spoon.reflect.visitor.chain with parameters of type CtConsumableFunctionModifier and TypeMethodDescription<I> CtQuery
CtQuery.map(CtConsumableFunction<I> queryStep)
Same asCtQuery.map(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> CtQuery
CtQueryable.map(CtConsumableFunction<I> queryStep)
<I> CtQueryImpl
CtQueryImpl.map(CtConsumableFunction<I> code)
-
Uses of CtConsumableFunction in spoon.reflect.visitor.filter
Classes in spoon.reflect.visitor.filter that implement CtConsumableFunctionModifier and TypeClassDescriptionclass
Returns all methods/lambdas with same signature in related inheritance hierarchies.class
ExpectsCtType
as input and produces allCtTypeMember
s declared in input class or any super class or super interface.class
This Query expects aCtCatchVariable
as input and returns allCtCatchVariableReference
s, which refers this input.class
This Query expects aCtCatchVariable
as input and returns all CtElements, which are in visibility scope of that catch variable.class
Returns all children of an element.class
This Query expects aCtField
as input and returns allCtFieldReference
s, which refers this input.class
This Query expects aCtField
as input and returns all CtElements, which are in visibility scope of that field.class
This mapping function expects aCtLocalVariable
as input and returns allCtLocalVariableReference
s, which refers this input.class
This Query expects aCtLocalVariable
as input and returns all CtElements, which are in visibility scope of that local variable.class
Gets all overridden method from the method given.class
This Query expects aCtParameter
as input and returns allCtParameterReference
s, which refers this input.class
This Query expects aCtParameter
as input and returns all CtElements, which are in visibility scope of that parameter.class
This Function expects aCtElement
as input and returns all parents of this element.class
This mapping function searches for allCtVariable
instances, which might be a declaration of an inputCtElement
.class
visits siblings of input element.class
Expects aCtTypeInformation
as input and produces all sub classes and sub interfaces recursively.
The output is produced in arbitrary order.class
Expects aCtTypeInformation
as input and produces all super classes and super interfaces recursively.
The output is produced in following order: input type.class
The mapping function, acceptingCtVariable
CtLocalVariable - local variable declared in body CtField - member field of an type CtParameter - method parameter CtCatchVariable - try - catch variable and returning all theCtVariableReference
, which refers this variableclass
The mapping function, acceptingCtVariable
CtLocalVariable - local variable declared in body CtParameter - method parameter CtCatchVariable - try - catch variable and returning all the CtElements, which exists in visibility scope of this variable. -
Uses of CtConsumableFunction in spoon.support.reflect.declaration
Methods in spoon.support.reflect.declaration with parameters of type CtConsumableFunctionModifier and TypeMethodDescription<I> CtQuery
CtElementImpl.map(CtConsumableFunction<I> queryStep)