Package com.pressassociation.pr.match
Class Leaf
- java.lang.Object
-
- com.pressassociation.pr.match.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LeafcopyOf(Iterable<String> pathParts)Create a Leaf from the list of parts.static LeaffromPath(CharSequence path)Create a new leaf from the given path.com.google.common.collect.ImmutableList<String>getPath()static Leafof(String pathPart)Create a new Leaf from a single part.StringtoString()
-
-
-
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.
-
getPath
public com.google.common.collect.ImmutableList<String> getPath()
-
-