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>
public class CtRolePathElement extends AbstractPathElement<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 Modifier and Type Field Description static String
STRING
-
Fields inherited from class spoon.reflect.path.impl.AbstractPathElement
ARGUMENT_END, ARGUMENT_NAME_SEPARATOR, ARGUMENT_START
-
-
Constructor Summary
Constructors Constructor Description CtRolePathElement(CtRole role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<CtElement>
getElements(Collection<CtElement> roots)
Get elements childs of roots that match with this path.CtRole
getRole()
String
toString()
-
Methods inherited from class spoon.reflect.path.impl.AbstractPathElement
addArgument, getArguments, getParamString
-
-
-
-
Field Detail
-
STRING
public static final String STRING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CtRolePathElement
public CtRolePathElement(CtRole role)
-
-
Method Detail
-
getRole
public CtRole getRole()
-
getElements
public Collection<CtElement> getElements(Collection<CtElement> roots)
Description copied from interface:CtPathElement
Get elements childs of roots that match with this path.
-
-