Exemple #1
0
 /**
  * Makes one token point to the same text segment, and have the same value as another token.
  *
  * @param t2 The token from which to copy.
  */
 public void copyFrom(Token t2) {
   text = t2.getTextArray();
   textOffset = t2.getTextOffset();
   textCount = t2.length();
   setOffset(t2.getOffset());
   setType(t2.getType());
   hyperlink = t2.isHyperlink();
   languageIndex = t2.getLanguageIndex();
   nextToken = t2.getNextToken();
 }