コード例 #1
0
ファイル: DEPTree.java プロジェクト: adam-faulkner/clearnlp
 /** Inserts the specific node to this tree. */
 public boolean insertNode(int index, DEPNode node) {
   try {
     add(index, node);
     reassignIDs(index);
     return true;
   } catch (IndexOutOfBoundsException e) {
     e.printStackTrace();
     return false;
   }
 }
コード例 #2
0
ファイル: DEPTree.java プロジェクト: adam-faulkner/clearnlp
 /** Removes the specific node from this tree. */
 public boolean removeNode(int index) {
   try {
     remove(index);
     reassignIDs(index);
     return true;
   } catch (IndexOutOfBoundsException e) {
     e.printStackTrace();
     return false;
   }
 }