Package spoon.reflect.path.impl
Class CtRolePathElement
java.lang.Object
spoon.reflect.path.impl.AbstractPathElement<CtElement,CtElement>
spoon.reflect.path.impl.CtRolePathElement
- All Implemented Interfaces:
CtPathElement<CtElement,CtElement>
A CtPathElement that define some roles for matching.
Differents roles are define :
- statement: match on all statements define in the body of an executable
- parameter: match on parameter of an executable
- defaultValue: for value of ctFields
-
Field Summary
Fields inherited from class spoon.reflect.path.impl.AbstractPathElement
ARGUMENT_END, ARGUMENT_NAME_SEPARATOR, ARGUMENT_START
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetElements(Collection<CtElement> roots)
Get elements childs of roots that match with this path.getRole()
toString()
Methods inherited from class spoon.reflect.path.impl.AbstractPathElement
addArgument, getArguments, getParamString
-
Field Details
-
STRING
- See Also:
- Constant Field Values
-
-
Constructor Details
-
CtRolePathElement
-
-
Method Details
-
getRole
-
toString
-
getElements
Description copied from interface:CtPathElement
Get elements childs of roots that match with this path.
-