/** @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 Keep(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
Keep keep = new Keep(jCas, a.getBegin(), a.getEnd()); keep.setEnclosedAnnot(a); keep.setNormalizedText(a.getCoveredText()); keep.addToIndexes();
Annotation a = k.getEnclosedAnnot(); String normalized = null; normalized = normalized.toLowerCase(); k.setNormalizedText(normalized); k.setNormalizedText(normalized);
return "Keep[" + k.getCoveredText() + "] normalized:" + k.getNormalizedText() + " enclosedA:" + string(k.getEnclosedAnnot());
public FeatureStructure createFS(int addr, CASImpl cas) { if (Keep_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Keep_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Keep(addr, Keep_Type.this); Keep_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Keep(addr, Keep_Type.this); } };
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Keep(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Keep(JCas jcas) { super(jcas); readObject(); }