abbot.script.parsers
Class TreePathParser
java.lang.Object
abbot.script.parsers.TreePathParser
- All Implemented Interfaces:
- Parser
public class TreePathParser
- extends Object
- implements Parser
Convert a String
into a TreePath
.
Method Summary |
Object |
parse(String input)
The string representation of a TreePath is what is usually generated
by its toString method, e.g. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreePathParser
public TreePathParser()
parse
public Object parse(String input)
throws IllegalArgumentException
- The string representation of a TreePath is what is usually generated
by its toString method, e.g.
[root, parent, child]
Nodes which contain a comma need to have that comma preceded by a
backslash to avoid it being interpreted as two separate nodes.
NOTE: The returned TreePath is only a TreePath constructed of Strings;
it requires further manipulation to be turned into a true TreePath as
it relates to a given Tree.
- Specified by:
parse
in interface Parser
- Throws:
IllegalArgumentException
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on