/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TopTreebankNode(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TopTreebankNode(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TopTreebankNode(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public TopTreebankNode(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
public static TopTreebankNode getTreeCopy(JCas jcas, TopTreebankNode orig){ if(orig == null) return null; TopTreebankNode copy = new TopTreebankNode(jcas); copy.setNodeType(orig.getNodeType()); copy.setBegin(orig.getBegin()); copy.setEnd(orig.getEnd()); copy.setParent(null); copy.setChildren(new FSArray(jcas,1)); copy.setTreebankParse(orig.getTreebankParse()); if(orig.getChildren() == null || orig.getChildren().size() == 0){ System.err.println("WHAT?"); } copy.setChildren(0, getTreeCopy(jcas, orig.getChildren(0))); copy.getChildren(0).setParent(copy); return copy; }
public static TopTreebankNode getTreeCopy(JCas jcas, TopTreebankNode orig){ if(orig == null) return null; TopTreebankNode copy = new TopTreebankNode(jcas); copy.setNodeType(orig.getNodeType()); copy.setBegin(orig.getBegin()); copy.setEnd(orig.getEnd()); copy.setParent(null); copy.setChildren(new FSArray(jcas,1)); copy.setTreebankParse(orig.getTreebankParse()); if(orig.getChildren() == null || orig.getChildren().size() == 0){ System.err.println("WHAT?"); } copy.setChildren(0, getTreeCopy(jcas, orig.getChildren(0))); copy.getChildren(0).setParent(copy); return copy; }