public class TreePath
extends Object
GDK enhancements for TreePath.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
getAt(int index)Support the subscript operator for TreePath. |
|
public Iterator<?> |
iterator()Returns an Iterator which traverses the TreePath one path at a time. |
|
public TreePath |
leftShift(Object p)Overloads the left shift operator to provide an easy way to add paths to a treePath. |
|
public int |
size()Provide the standard Groovy size() method for TreePath. |
| Methods inherited from class | Name |
|---|---|
class Object |
addShutdownHook, any, any, asBoolean, asType, collect, collect, collect, dump, each, eachMatch, eachMatch, eachWithIndex, every, every, find, find, findAll, findAll, findIndexOf, findIndexOf, findIndexValues, findIndexValues, findLastIndexOf, findLastIndexOf, findResult, findResult, findResult, findResult, getAt, getMetaClass, getMetaPropertyValues, getProperties, grep, grep, hasProperty, identity, inject, inject, inspect, invokeMethod, is, isCase, isNotCase, iterator, metaClass, print, print, printf, printf, println, println, println, putAt, respondsTo, respondsTo, setMetaClass, sleep, sleep, split, sprintf, sprintf, stream, tap, toString, use, use, use, with, with, withCloseable, withCloseable, withMethodClosure, withStream, withStream, withTraits |
Support the subscript operator for TreePath.
index - the index of the path to getReturns an Iterator which traverses the TreePath one path at a time.
Overloads the left shift operator to provide an easy way to add paths to a treePath.
WARNING: this operation returns a new TreePath, not the original one.
p - an object to be added to the treePath. Provide the standard Groovy size() method for TreePath.