パッケージ nlp4j.node
クラス Node<T>
- java.lang.Object
-
- nlp4j.node.Node<T>
-
- 型パラメータ:
T
- Value of this Node
- すべての実装されたインタフェース:
Cloneable
- 直系の既知のサブクラス:
NodeKeyword
public class Node<T> extends Object
- 導入されたバージョン:
- 1.3.1.0
- 作成者:
- Hiroki Oya
-
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 void
addChildNode(Node<T> childNode)
Node<T>
clone()
List<Node<T>>
clonePatterns()
Split Nodes for Pattern MatchingNode<T>
getChildNode(int idx)
ArrayList<Node<T>>
getChildNodes()
int
getChildNodesSize()
T
getValue()
boolean
hasNext()
protected boolean
hasNextChild()
boolean
match(Node<T> target)
boolean
matchAll(Node<T> target)
Node<T>
next()
Node<T>
nextChild()
void
print()
Print Node to System.errNode<T>
removeChild(int index)
void
resetIndex()
Reset Index PointerString
toString()
-
-
-
コンストラクタの詳細
-
Node
public Node(T value)
- パラメータ:
value
- of this node
-
-
メソッドの詳細
-
clonePatterns
public List<Node<T>> clonePatterns()
Split Nodes for Pattern Matching- 戻り値:
- cloned Nodes
-
getChildNodesSize
public int getChildNodesSize()
- 戻り値:
- size of child nodes
-
getValue
public T getValue()
- 戻り値:
- value of this node
-
hasNext
public boolean hasNext()
- 戻り値:
- whether this node has next node or next leaf
-
hasNextChild
protected boolean hasNextChild()
-
match
public boolean match(Node<T> target)
- パラメータ:
target
- : node to be matched- 戻り値:
- match result of node
-
matchAll
public boolean matchAll(Node<T> target)
- パラメータ:
target
- node for matching- 戻り値:
- match result of all nodes
-
print
public void print()
Print Node to System.err
-
removeChild
public Node<T> removeChild(int index)
- パラメータ:
index
- of child node- 戻り値:
- removed node or null
-
resetIndex
public void resetIndex()
Reset Index Pointer
-
-