/** @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 NumToken(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
public NumberTokenAdapter(NumToken nta) { super(nta); if (!Strings.isNullOrEmpty(nta.getCoveredText()) && nta.getCoveredText().charAt(0) == '-') { iv_isPositive = false; } }
break; case Token.TYPE_NUMBER: NumToken nta = new NumToken(jcas); nta.setBegin(begin); nta.setEnd(end); if (t.isInteger()) nta.setNumType(TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER); nta.setNumType(TokenizerAnnotator.TOKEN_NUM_TYPE_DECIMAL);
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public NumToken(JCas jcas) { super(jcas); readObject(); }
} else if (obj instanceof NumToken) { NumToken nta = (NumToken) obj; if (nta.getNumType() == TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER) { return new IntegerTokenAdapter(nta);
} else if (oldSystemTokenClass.equals(NumToken.class.getName())) newGoldToken = new NumToken(goldView, oldSystemToken.getBegin(), oldSystemToken.getEnd()); } else if (oldSystemTokenClass.equals(PunctuationToken.class.getName()))
break; case Token.TYPE_NUMBER: NumToken nta = new NumToken(jcas); nta.setBegin(begin); nta.setEnd(end); if (t.isInteger()) nta.setNumType(TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER); nta.setNumType(TokenizerAnnotator.TOKEN_NUM_TYPE_DECIMAL);
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public NumToken(int addr, TOP_Type type) { super(addr, type); readObject(); }
} else if (obj instanceof NumToken) { NumToken nta = (NumToken) obj; if (nta.getNumType() == TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER) { return new IntegerTokenAdapter(nta);
} else if (oldSystemTokenClass.equals(NumToken.class.getName())) newGoldToken = new NumToken(goldView, oldSystemToken.getBegin(), oldSystemToken.getEnd()); } else if (oldSystemTokenClass.equals(PunctuationToken.class.getName()))
/** @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 NumToken(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public NumToken(JCas jcas) { super(jcas); readObject(); }
if (nta.getNumType() == TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER)
token = new NumToken(jcas, beginFromStartOfDocument, endFromStartOfDocument); String tokenText = s.substring(begin, end); setNumType((NumToken)token, tokenText);
public NumberTokenAdapter(NumToken nta) { super(nta); if (!Strings.isNullOrEmpty(nta.getCoveredText()) && nta.getCoveredText().charAt(0) == '-') { iv_isPositive = false; } }
/** @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 NumToken(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public NumToken(int addr, TOP_Type type) { super(addr, type); readObject(); }
if (nta.getNumType() == TokenizerAnnotator.TOKEN_NUM_TYPE_INTEGER)
token = new NumToken(jcas, beginFromStartOfDocument, endFromStartOfDocument); String tokenText = s.substring(begin, end); setNumType((NumToken)token, tokenText);
public DecimalTokenAdapter(NumToken nta) { super(nta); iv_val = Double.parseDouble(removeCommas(nta.getCoveredText())); }