public class TopTreebankNode extends TreebankNode
Modifier and Type | Field and Description |
---|---|
static int |
type |
static int |
typeIndexID |
Modifier | Constructor and Description |
---|---|
protected |
TopTreebankNode()
Never called.
|
|
TopTreebankNode(int addr,
TOP_Type type)
Internal - constructor used by generator
|
|
TopTreebankNode(JCas jcas) |
|
TopTreebankNode(JCas jcas,
int begin,
int end) |
Modifier and Type | Method and Description |
---|---|
FSArray |
getTerminals()
getter for terminals - gets Stores the terminal nodes of the parse tree.
|
TerminalTreebankNode |
getTerminals(int i)
indexed getter for terminals - gets an indexed value - Stores the terminal nodes of the parse tree.
|
java.lang.String |
getTreebankParse()
getter for treebankParse - gets A bracketed sentence string representing the parse tree.
|
int |
getTypeIndexID() |
private void |
readObject()
Write your own initialization here
|
void |
setTerminals(FSArray v)
setter for terminals - sets Stores the terminal nodes of the parse tree.
|
void |
setTerminals(int i,
TerminalTreebankNode v)
indexed setter for terminals - sets an indexed value - Stores the terminal nodes of the parse tree.
|
void |
setTreebankParse(java.lang.String v)
setter for treebankParse - sets A bracketed sentence string representing the parse tree.
|
getChildren, getChildren, getHeadIndex, getLeaf, getNodeTags, getNodeTags, getNodeType, getNodeValue, getParent, setChildren, setChildren, setHeadIndex, setLeaf, setNodeTags, setNodeTags, setNodeType, setNodeValue, setParent
protected TopTreebankNode()
public TopTreebankNode(int addr, TOP_Type type)
addr
- low level Feature Structure referencetype
- the type of this Feature Structurepublic TopTreebankNode(JCas jcas)
jcas
- JCas to which this Feature Structure belongspublic TopTreebankNode(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 int getTypeIndexID()
getTypeIndexID
in class TreebankNode
private void readObject()
public java.lang.String getTreebankParse()
public void setTreebankParse(java.lang.String v)
v
- value to set into the featurepublic FSArray getTerminals()
public void setTerminals(FSArray v)
v
- value to set into the featurepublic TerminalTreebankNode getTerminals(int i)
i
- index in the array to getpublic void setTerminals(int i, TerminalTreebankNode v)
i
- index in the array to setv
- value to set into the array