public class TreebankNode extends ScoredAnnotation
| Modifier and Type | Field and Description |
|---|---|
static int |
type |
static int |
typeIndexID |
| Modifier | Constructor and Description |
|---|---|
protected |
TreebankNode()
Never called.
|
|
TreebankNode(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
TreebankNode(JCas jcas) |
|
TreebankNode(JCas jcas,
int begin,
int end) |
| Modifier and Type | Method and Description |
|---|---|
FSArray |
getChildren()
getter for children - gets
|
TreebankNode |
getChildren(int i)
indexed getter for children - gets an indexed value -
|
boolean |
getLeaf()
getter for leaf - gets
|
StringArray |
getNodeTags()
getter for nodeTags - gets
|
String |
getNodeTags(int i)
indexed getter for nodeTags - gets an indexed value -
|
String |
getNodeType()
getter for nodeType - gets
|
String |
getNodeValue()
getter for nodeValue - gets
|
TreebankNode |
getParent()
getter for parent - gets
|
int |
getTypeIndexID() |
void |
setChildren(FSArray v)
setter for children - sets
|
void |
setChildren(int i,
TreebankNode v)
indexed setter for children - sets an indexed value -
|
void |
setLeaf(boolean v)
setter for leaf - sets
|
void |
setNodeTags(int i,
String v)
indexed setter for nodeTags - sets an indexed value -
|
void |
setNodeTags(StringArray v)
setter for nodeTags - sets
|
void |
setNodeType(String v)
setter for nodeType - sets
|
void |
setNodeValue(String v)
setter for nodeValue - sets
|
void |
setParent(TreebankNode v)
setter for parent - sets
|
getScore, setScoregetBegin, getCoveredText, getEnd, getStart, setBegin, setEndgetSofa, getViewaddToIndexes, addToIndexes, equals, getAddress, getCAS, getCASImpl, getLowLevelCas, hashCode, removeFromIndexes, removeFromIndexesclone, getBooleanValue, getByteValue, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, prettyPrint, prettyPrint, prettyPrint, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, toString, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetViewclone, equals, getBooleanValue, getByteValue, getCAS, getDoubleValue, getFeatureValue, getFeatureValueAsString, getFloatValue, getIntValue, getLongValue, getShortValue, getStringValue, getType, hashCode, setBooleanValue, setByteValue, setDoubleValue, setFeatureValue, setFeatureValueFromString, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValuepublic static final int type
public static final int typeIndexID
protected TreebankNode()
public TreebankNode(int addr, TOP_Type type)
addr - low level Feature Structure referencetype - the type of this Feature Structurepublic TreebankNode(JCas jcas)
jcas - JCas to which this Feature Structure belongspublic TreebankNode(JCas jcas, int begin, int end)
jcas - JCas to which this Feature Structure belongsbegin - offset to the begin spot in the SofAend - offset to the end spot in the SofApublic FSArray getChildren()
public TreebankNode getChildren(int i)
i - index in the array to getpublic boolean getLeaf()
public StringArray getNodeTags()
public String getNodeTags(int i)
i - index in the array to getpublic String getNodeType()
public String getNodeValue()
public TreebankNode getParent()
public int getTypeIndexID()
getTypeIndexID in class ScoredAnnotationpublic void setChildren(FSArray v)
v - value to set into the featurepublic void setChildren(int i, TreebankNode v)
i - index in the array to setv - value to set into the arraypublic void setLeaf(boolean v)
v - value to set into the featurepublic void setNodeTags(int i, String v)
i - index in the array to setv - value to set into the arraypublic void setNodeTags(StringArray v)
v - value to set into the featurepublic void setNodeType(String v)
v - value to set into the featurepublic void setNodeValue(String v)
v - value to set into the featurepublic void setParent(TreebankNode v)
v - value to set into the featureCopyright © 2014. All rights reserved.