Package spoon.reflect.path
Class CtPathStringBuilder
java.lang.Object
spoon.reflect.path.CtPathStringBuilder
Created by nicolas on 27/08/2015.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfromString(String pathStr)
Build path from a string representation.
-
Constructor Details
-
CtPathStringBuilder
public CtPathStringBuilder()
-
-
Method Details
-
fromString
Build path from a string representation. for example: new CtPathBuilder().fromString(".spoon.test.path.Foo.foo#statement[index=0]") Match the first statement of method foo from class spoon.test.path.Foo. Some specials characters . : match with the given name # : match with a CtPathRole / : match with a element type (for example, to match all classes, use /CtClass- Throws:
CtPathException
-