Class Leaf


  • public class Leaf
    extends Object
    A path that represents a leaf in a search tree. This class is used by Matcher as the token to search for.
    Author:
    Matt Nathan
    • Method Detail

      • fromPath

        public static Leaf fromPath​(CharSequence path)
        Create a new leaf from the given path. This will split the path using the / character.
      • of

        public static Leaf of​(String pathPart)
        Create a new Leaf from a single part.
      • copyOf

        public static Leaf copyOf​(Iterable<String> pathParts)
        Create a Leaf from the list of parts.
      • getPath

        public com.google.common.collect.ImmutableList<String> getPath()