Package spoon.reflect.path.impl
Interface CtPathElement<P extends CtElement,T extends CtElement>
- Type Parameters:
P
- the type of the queried elementsT
- the type of the returned elements
- All Known Implementing Classes:
AbstractPathElement
,CtNamedPathElement
,CtRolePathElement
,CtTypedNameElement
A single path element from a CtPath.
Internal interface, not meant to be used by client code.
-
Method Summary
Modifier and TypeMethodDescription<C extends CtPathElement<P, T>>
CaddArgument(String key, String value)
Add a path argument.getElements(Collection<P> roots)
Get elements childs of roots that match with this path.
-
Method Details
-
getElements
Get elements childs of roots that match with this path. -
addArgument
Add a path argument. For instance, addArgument("index",3) will select only the third element in an indexed list.
-