private int position(boolean inject){
  int posInc=accumPosInc;
  if (hasOutputToken) {
    accumPosInc=0;
    return inject ? 0 : Math.max(1,posInc);
  }
  hasOutputToken=true;
  if (!hasOutputFollowingOriginal) {
    hasOutputFollowingOriginal=true;
    return 0;
  }
  accumPosInc=0;
  return Math.max(1,posInc);
}

private int position ( boolean inject ) { int posInc = accumPosInc ; if ( hasOutputToken ) { accumPosInc = 0 ; return inject ? 0 : Math . max ( 1 , posInc ) ; } hasOutputToken = true ; if ( ! hasOutputFollowingOriginal ) { hasOutputFollowingOriginal = true ; return 0 ; } accumPosInc = 0 ; return Math . max ( 1 , posInc ) ; }
get the position increment gap for a subword or concatenation
