org.apache.ctakes.typesystem.type.syntax
Class TopTreebankNode_Type

java.lang.Object
  extended by org.apache.uima.jcas.cas.TOP_Type
      extended by org.apache.uima.jcas.cas.AnnotationBase_Type
          extended by org.apache.uima.jcas.tcas.Annotation_Type
              extended by org.apache.ctakes.typesystem.type.syntax.TreebankNode_Type
                  extended by org.apache.ctakes.typesystem.type.syntax.TopTreebankNode_Type

public class TopTreebankNode_Type
extends TreebankNode_Type

A Penn Treebank Node; as the top node, this stores the whole subsumed sentence's parse tree as a string. It also stores all the terminals, allowing for traversal of the tree bottom-up (top-down is implied through the TreebankNode's 'children' attribute). Updated by JCasGen Tue Apr 09 11:44:42 EDT 2013


Field Summary
(package private)  org.apache.uima.cas.Feature casFeat_terminals
           
(package private)  org.apache.uima.cas.Feature casFeat_treebankParse
           
(package private)  int casFeatCode_terminals
           
(package private)  int casFeatCode_treebankParse
           
static boolean featOkTst
           
static int typeIndexID
           
 
Fields inherited from class org.apache.ctakes.typesystem.type.syntax.TreebankNode_Type
casFeat_children, casFeat_headIndex, casFeat_leaf, casFeat_nodeTags, casFeat_nodeType, casFeat_nodeValue, casFeat_parent, casFeatCode_children, casFeatCode_headIndex, casFeatCode_leaf, casFeatCode_nodeTags, casFeatCode_nodeType, casFeatCode_nodeValue, casFeatCode_parent
 
Fields inherited from class org.apache.uima.jcas.cas.TOP_Type
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance
 
Constructor Summary
TopTreebankNode_Type(org.apache.uima.jcas.JCas jcas, org.apache.uima.cas.Type casType)
          initialize variables to correspond with Cas Type and Features
 
Method Summary
protected  org.apache.uima.cas.impl.FSGenerator getFSGenerator()
           
 int getTerminals(int addr)
           
 int getTerminals(int addr, int i)
           
 java.lang.String getTreebankParse(int addr)
           
 void setTerminals(int addr, int v)
           
 void setTerminals(int addr, int i, int v)
           
 void setTreebankParse(int addr, java.lang.String v)
           
 
Methods inherited from class org.apache.ctakes.typesystem.type.syntax.TreebankNode_Type
getChildren, getChildren, getHeadIndex, getLeaf, getNodeTags, getNodeTags, getNodeType, getNodeValue, getParent, setChildren, setChildren, setHeadIndex, setLeaf, setNodeTags, setNodeTags, setNodeType, setNodeValue, setParent
 
Methods inherited from class org.apache.uima.jcas.tcas.Annotation_Type
getBegin, getCoveredText, getEnd, setBegin, setEnd
 
Methods inherited from class org.apache.uima.jcas.cas.AnnotationBase_Type
getSofa, getView
 
Methods inherited from class org.apache.uima.jcas.cas.TOP_Type
addToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeIndexID

public static final int typeIndexID

featOkTst

public static final boolean featOkTst

casFeat_treebankParse

final org.apache.uima.cas.Feature casFeat_treebankParse

casFeatCode_treebankParse

final int casFeatCode_treebankParse

casFeat_terminals

final org.apache.uima.cas.Feature casFeat_terminals

casFeatCode_terminals

final int casFeatCode_terminals
Constructor Detail

TopTreebankNode_Type

public TopTreebankNode_Type(org.apache.uima.jcas.JCas jcas,
                            org.apache.uima.cas.Type casType)
initialize variables to correspond with Cas Type and Features

Method Detail

getFSGenerator

protected org.apache.uima.cas.impl.FSGenerator getFSGenerator()
Overrides:
getFSGenerator in class TreebankNode_Type

getTreebankParse

public java.lang.String getTreebankParse(int addr)

setTreebankParse

public void setTreebankParse(int addr,
                             java.lang.String v)

getTerminals

public int getTerminals(int addr)

setTerminals

public void setTerminals(int addr,
                         int v)

getTerminals

public int getTerminals(int addr,
                        int i)

setTerminals

public void setTerminals(int addr,
                         int i,
                         int v)