Class CtPathStringBuilder

java.lang.Object
spoon.reflect.path.CtPathStringBuilder

public class CtPathStringBuilder extends Object
Created by nicolas on 27/08/2015.
  • Constructor Details

    • CtPathStringBuilder

      public CtPathStringBuilder()
  • Method Details

    • fromString

      public CtPath fromString(String pathStr) throws CtPathException
      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