|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swtbot.swt.finder.utils.TreePath
public final class TreePath
Field Summary | |
---|---|
static TreePath |
EMPTY
Constant for representing an empty tree path. |
Constructor Summary | |
---|---|
TreePath(Object... segments)
Constructs a path identifying a leaf node in a tree. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Object |
getLastSegment()
Returns the last element in this path, or null if this path has no segments. |
TreePath |
getParentPath()
Returns a copy of this tree path with one segment removed from the end, or null if this tree path
has no segments. |
Object |
getSegment(int index)
Returns the element at the specified index in this path. |
int |
getSegmentCount()
Returns the number of elements in this path. |
int |
hashCode()
|
Object |
pop()
Removes the last path component from the tree and returns it. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TreePath EMPTY
Constructor Detail |
---|
public TreePath(Object... segments)
segments
- path of elements to a leaf node in a tree, starting with the root elementMethod Detail |
---|
public Object getSegment(int index)
index
- index of element to return
public int getSegmentCount()
public Object getLastSegment()
null
if this path has no segments.
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public TreePath getParentPath()
null
if this tree path
has no segments.
public Object pop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |