Class CtPathStringBuilder

  • public class CtPathStringBuilder
    extends java.lang.Object
    Created by nicolas on 27/08/2015.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CtPath fromString​(java.lang.String pathStr)
      Build path from a string representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CtPathStringBuilder

        public CtPathStringBuilder()
    • Method Detail

      • fromString

        public CtPath fromString​(java.lang.String pathStr)
                          throws CtPathException
        Build path from a string representation. for example: new CtPathBuilder().fromString("[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