org.nutz.lang.util
类 SimpleNode<T>
java.lang.Object
org.nutz.lang.util.SimpleNode<T>
- 所有已实现的接口:
- Node<T>
- 直接已知子类:
- Tag
public class SimpleNode<T>
- extends java.lang.Object
- implements Node<T>
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
get
public T get()
- 指定者:
- 接口
Node<T>
中的 get
set
public Node<T> set(T obj)
- 指定者:
- 接口
Node<T>
中的 set
parent
public Node<T> parent()
- 指定者:
- 接口
Node<T>
中的 parent
top
public Node<T> top()
- 指定者:
- 接口
Node<T>
中的 top
prev
public Node<T> prev()
- 指定者:
- 接口
Node<T>
中的 prev
prev
public Node<T> prev(Node<T> node)
- 指定者:
- 接口
Node<T>
中的 prev
next
public Node<T> next()
- 指定者:
- 接口
Node<T>
中的 next
next
public Node<T> next(Node<T> node)
- 指定者:
- 接口
Node<T>
中的 next
isRoot
public boolean isRoot()
- 指定者:
- 接口
Node<T>
中的 isRoot
isLast
public boolean isLast()
- 指定者:
- 接口
Node<T>
中的 isLast
isFirst
public boolean isFirst()
- 指定者:
- 接口
Node<T>
中的 isFirst
getAncestors
public java.util.List<Node<T>> getAncestors()
- 指定者:
- 接口
Node<T>
中的 getAncestors
depth
public int depth()
- 指定者:
- 接口
Node<T>
中的 depth
getNextSibling
public java.util.List<Node<T>> getNextSibling()
- 指定者:
- 接口
Node<T>
中的 getNextSibling
getPrevSibling
public java.util.List<Node<T>> getPrevSibling()
- 指定者:
- 接口
Node<T>
中的 getPrevSibling
index
public int index()
- 指定者:
- 接口
Node<T>
中的 index
getChildren
public java.util.List<Node<T>> getChildren()
- 指定者:
- 接口
Node<T>
中的 getChildren
countChildren
public int countChildren()
- 指定者:
- 接口
Node<T>
中的 countChildren
hasChild
public boolean hasChild()
- 指定者:
- 接口
Node<T>
中的 hasChild
firstChild
public Node<T> firstChild()
- 指定者:
- 接口
Node<T>
中的 firstChild
lastChild
public Node<T> lastChild()
- 指定者:
- 接口
Node<T>
中的 lastChild
parent
public Node<T> parent(Node<T> node)
- 指定者:
- 接口
Node<T>
中的 parent
clearChildren
public Node<T> clearChildren()
- 指定者:
- 接口
Node<T>
中的 clearChildren
add
public Node<T> add(Node<?>... nodes)
- 指定者:
- 接口
Node<T>
中的 add
addFirst
public Node<T> addFirst(Node<T> node)
- 指定者:
- 接口
Node<T>
中的 addFirst
child
public Node<T> child(int index)
- 指定者:
- 接口
Node<T>
中的 child
desc
public Node<T> desc(int... indexes)
- 指定者:
- 接口
Node<T>
中的 desc
next
public Node<T> next(int index)
- 指定者:
- 接口
Node<T>
中的 next
prev
public Node<T> prev(int index)
- 指定者:
- 接口
Node<T>
中的 prev
insertBefore
public Node<T> insertBefore(int index,
Node<T> node)
- 指定者:
- 接口
Node<T>
中的 insertBefore
pop
public Node<T> pop()
- 指定者:
- 接口
Node<T>
中的 pop
popFirst
public Node<T> popFirst()
- 指定者:
- 接口
Node<T>
中的 popFirst
removeChild
public Node<T> removeChild(int index)
- 指定者:
- 接口
Node<T>
中的 removeChild
remove
public boolean remove()
- 指定者:
- 接口
Node<T>
中的 remove
- 返回:
- true 成功移除,false 不能移除
getIndex
public int getIndex()
- 指定者:
- 接口
Node<T>
中的 getIndex
toString
public java.lang.String toString()
- 覆盖:
- 类
java.lang.Object
中的 toString
iterator
public java.util.Iterator<Node<T>> iterator()
- 指定者:
- 接口
Node<T>
中的 iterator