See: Description
Class | Description |
---|---|
AbstractFilter<T extends CtElement> |
Defines an abstract filter based on matching on the element types.
|
AbstractReferenceFilter<T extends CtReference> |
This class defines an abstract reference filter that needs to be subclassed
in order to define the matching criteria.
|
AllMethodsSameSignatureFunction |
Returns all methods/lambdas with same signature in related inheritance hierarchies.
|
AllTypeMembersFunction |
Expects
CtType as input
and produces all CtTypeMember s declared in input class
or any super class or super interface. |
AnnotationFilter<E extends CtElement> |
This filter matches all the elements annotated with a given annotation type.
|
CatchVariableReferenceFunction |
This Query expects a
CtCatchVariable as input
and returns all CtCatchVariableReference s, which refers this input. |
CatchVariableScopeFunction |
This Query expects a
CtCatchVariable as input
and returns all CtElements,
which are in visibility scope of that catch variable. |
CompositeFilter<T extends CtElement> |
This class defines a composite filter, which can compose several filters
together by using
FilteringOperator . |
CtScannerFunction |
Returns all children of an element.
|
DirectReferenceFilter<T extends CtReference> |
This simple filter matches all the references to a given element by using
reference equality.
|
ExecutableReferenceFilter |
This filter matches all the
CtExecutableReference referencing defined one or more CtExecutable s. |
FieldAccessFilter |
This simple filter matches all the accesses to a given field.
|
FieldReferenceFunction |
This Query expects a
CtField as input
and returns all CtFieldReference s, which refers this input. |
FieldScopeFunction |
This Query expects a
CtField as input
and returns all CtElements,
which are in visibility scope of that field. |
InvocationFilter |
This simple filter matches all the accesses to a given executable or any
executable that overrides it.
|
LambdaFilter |
This filter matches all the
CtLambda elements, which implements defined interface(s) |
LineFilter |
This filter matches all elements that can be considered as line of code (e.g.
|
LocalVariableReferenceFunction |
This mapping function expects a
CtLocalVariable as input
and returns all CtLocalVariableReference s, which refers this input. |
LocalVariableScopeFunction |
This Query expects a
CtLocalVariable as input
and returns all CtElements,
which are in visibility scope of that local variable. |
NamedElementFilter<T extends CtNamedElement> |
Filters elements by name and by type (for instance to find a method).
|
OverriddenMethodFilter |
Gets all overridden method from the method given.
|
OverriddenMethodQuery |
Gets all overridden method from the method given.
|
OverridingMethodFilter |
Gets all overriding method from the method given.
|
ParameterReferenceFunction |
This Query expects a
CtParameter as input
and returns all CtParameterReference s, which refers this input. |
ParameterScopeFunction |
This Query expects a
CtParameter as input
and returns all CtElements,
which are in visibility scope of that parameter. |
ParentFunction |
This Function expects a
CtElement as input
and returns all parents of this element. |
PotentialVariableDeclarationFunction |
This mapping function searches for all
CtVariable instances,
which might be a declaration of an input CtElement . |
ReferenceTypeFilter<T extends CtReference> |
This simple filter matches all the references of a given type.
|
RegexFilter<E extends CtElement> |
Filters elements with a regular expression on the element's code.
|
ReturnOrThrowFilter |
This simple filter matches all the occurrences of a return or a throw
statement (end of execution flow).
|
SiblingsFunction |
visits siblings of input element.
|
SubInheritanceHierarchyFunction |
Expects a
CtTypeInformation as input
and produces all sub classes and sub interfaces recursively.The output is produced in arbitrary order. |
SubtypeFilter |
Matches all CtType elements, which are sub type of
SubtypeFilter.superType
Matches the input `superType` too. |
SuperInheritanceHierarchyFunction |
Expects a
CtTypeInformation as input
and produces all super classes and super interfaces recursively.The output is produced in following order: input type. |
SuperInheritanceHierarchyFunction.DistinctTypeListener |
Implementation of
CtScannerListener ,
which is used to assure that each interface is visited only once. |
TypeFilter<T extends CtElement> |
This simple filter matches all the elements of a given type.
|
VariableAccessFilter<T extends CtVariableAccess<?>> |
This simple filter matches all the accesses to a given field.
|
VariableReferenceFunction |
The mapping function, accepting
CtVariable
CtLocalVariable - local variable declared in body
CtField - member field of an type
CtParameter - method parameter
CtCatchVariable - try - catch variable
and returning all the CtVariableReference , which refers this variable |
VariableScopeFunction |
The mapping function, accepting
CtVariable
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. |
Enum | Description |
---|---|
AllTypeMembersFunction.Mode | |
FilteringOperator |
This enumeration defines the possible composition operators for filters.
|
SiblingsFunction.Mode |
Defines visiting mode
|
This package contains a set of useful filters when querying the model.
Copyright © 2007–2019 Inria. All rights reserved.