|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.upenn.cis.ptb.PTBTreeNodeImpl
| Nested Class Summary | |
class |
PTBTreeNodeImpl.PTBAttributeImpl
|
| Field Summary | |
protected PTBTreeNode |
firstChild
|
protected PTBLabel |
label
|
protected PTBTreeNode |
lastChild
|
protected PTBTreeNode |
nextSibling
|
protected javax.swing.tree.MutableTreeNode |
parent
|
protected PTBTreeNode |
previousSibling
|
protected java.lang.Object |
userObject
|
| Fields inherited from interface edu.upenn.cis.ptb.PTBTreeNode |
GapIndexAttributeQName, MovementIndexAttributeQName, NonPunctPOSPattern, RawAttributeQName, RolesAttributeQName, TypeAttributeQName |
| Constructor Summary | |
PTBTreeNodeImpl(PTBLabel label)
Creates a new instance of PTBTreeNodeImpl |
|
| Method Summary | |
java.util.Enumeration |
children()
|
boolean |
getAllowsChildren()
|
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
|
int |
getChildCount()
|
int |
getIndex(javax.swing.tree.TreeNode node)
|
PTBLabel |
getLabel()
Get the associated PTBLabel |
javax.swing.tree.TreeNode |
getParent()
|
java.lang.Object |
getUserObject()
|
void |
insert(javax.swing.tree.MutableTreeNode nc,
int index)
|
boolean |
isLeaf()
|
boolean |
isPreterminal()
Equivalent to getChildCount() == 1 && getChildAt(0).isLeaf() |
boolean |
isPunct()
Equivalent to getParent().isPunctPreterminal() |
boolean |
isPunctPreterminal()
isPreterminal(), and getLabel().getType() is not in NonPunctuationPOS |
boolean |
isTerminal()
Equivalent to isLeaf() |
boolean |
isTracePreterminal()
Equivalent to isPreterminal() && hasRole("NONE") |
boolean |
isTraceTerminal()
Equivalent to getParent().isTracePreterminal() |
void |
ptbAppendChild(javax.swing.tree.MutableTreeNode nc)
Adds the node supplied as the last child of this node. |
java.util.Enumeration |
ptbGetAttributes()
|
PTBTreeNode |
ptbGetFirstChild()
The first child of this node or null if it is a leaf. |
PTBTreeNode |
ptbGetLastChild()
The last child of this node or null if it is a leaf |
PTBTreeNode |
ptbGetNextSibling()
The next sibling if one exists, null otherwise. |
PTBTreeNode |
ptbGetPreviousSibling()
The previous sibling if one exists, null otherwise. |
void |
ptbSetFirstChild(PTBTreeNode firstChild)
Implementation specific. |
void |
ptbSetLastChild(PTBTreeNode lastChild)
Implementation specific. |
void |
ptbSetNextSibling(PTBTreeNode nextSibling)
Implementation specific. |
void |
ptbSetPreviousSibling(PTBTreeNode previousSibling)
Implementation specific. |
void |
remove(int index)
|
void |
remove(javax.swing.tree.MutableTreeNode aChild)
|
void |
removeFromParent()
|
void |
setLabel(PTBLabel label)
Sets the label |
void |
setParent(javax.swing.tree.MutableTreeNode parent)
|
void |
setUserObject(java.lang.Object userObject)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected PTBTreeNode previousSibling
protected PTBTreeNode nextSibling
protected PTBTreeNode firstChild
protected PTBTreeNode lastChild
protected PTBLabel label
protected javax.swing.tree.MutableTreeNode parent
protected java.lang.Object userObject
| Constructor Detail |
public PTBTreeNodeImpl(PTBLabel label)
| Method Detail |
public PTBLabel getLabel()
PTBTreeNode
getLabel in interface PTBTreeNodepublic boolean isPreterminal()
PTBTreeNode
isPreterminal in interface PTBTreeNodepublic boolean isTerminal()
PTBTreeNode
isTerminal in interface PTBTreeNodepublic boolean isTracePreterminal()
PTBTreeNode
isTracePreterminal in interface PTBTreeNodepublic boolean isTraceTerminal()
PTBTreeNode
isTraceTerminal in interface PTBTreeNodepublic void setLabel(PTBLabel label)
PTBTreeNode
setLabel in interface PTBTreeNodepublic void ptbSetFirstChild(PTBTreeNode firstChild)
PTBTreeNode
ptbSetFirstChild in interface PTBTreeNodepublic void ptbSetLastChild(PTBTreeNode lastChild)
PTBTreeNode
ptbSetLastChild in interface PTBTreeNodepublic void ptbSetPreviousSibling(PTBTreeNode previousSibling)
PTBTreeNode
ptbSetPreviousSibling in interface PTBTreeNodepublic void ptbSetNextSibling(PTBTreeNode nextSibling)
PTBTreeNode
ptbSetNextSibling in interface PTBTreeNodepublic void setParent(javax.swing.tree.MutableTreeNode parent)
setParent in interface javax.swing.tree.MutableTreeNodepublic PTBTreeNode ptbGetFirstChild()
PTBTreeNode
ptbGetFirstChild in interface PTBTreeNodepublic PTBTreeNode ptbGetLastChild()
PTBTreeNode
ptbGetLastChild in interface PTBTreeNodepublic PTBTreeNode ptbGetNextSibling()
PTBTreeNode
ptbGetNextSibling in interface PTBTreeNodepublic PTBTreeNode ptbGetPreviousSibling()
PTBTreeNode
ptbGetPreviousSibling in interface PTBTreeNodepublic javax.swing.tree.TreeNode getParent()
getParent in interface javax.swing.tree.TreeNodepublic java.lang.String toString()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt in interface javax.swing.tree.TreeNodepublic int getChildCount()
getChildCount in interface javax.swing.tree.TreeNodepublic int getIndex(javax.swing.tree.TreeNode node)
getIndex in interface javax.swing.tree.TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodepublic boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodepublic java.util.Enumeration children()
children in interface javax.swing.tree.TreeNodepublic void ptbAppendChild(javax.swing.tree.MutableTreeNode nc)
PTBTreeNode
ptbAppendChild in interface PTBTreeNode
public void insert(javax.swing.tree.MutableTreeNode nc,
int index)
insert in interface javax.swing.tree.MutableTreeNodepublic void remove(int index)
remove in interface javax.swing.tree.MutableTreeNodepublic void remove(javax.swing.tree.MutableTreeNode aChild)
remove in interface javax.swing.tree.MutableTreeNodepublic void removeFromParent()
removeFromParent in interface javax.swing.tree.MutableTreeNodepublic java.lang.Object getUserObject()
getUserObject in interface PTBTreeNodepublic void setUserObject(java.lang.Object userObject)
setUserObject in interface javax.swing.tree.MutableTreeNodepublic boolean isPunct()
PTBTreeNode
isPunct in interface PTBTreeNodepublic boolean isPunctPreterminal()
PTBTreeNode
isPunctPreterminal in interface PTBTreeNodepublic java.util.Enumeration ptbGetAttributes()
ptbGetAttributes in interface PTBTreeNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||