private void addOneTokenToTLA(String token){
  String trimmedToken=token.trim();
  int numberOfLeftTrimmedTokens=(trimmedToken.length() == 0) ? -1 : token.indexOf(trimmedToken.charAt(0));
  if (numberOfLeftTrimmedTokens == -1) {
    numberOfLeftTrimmedTokens=0;
    trimmedToken=token;
  }
  int objBegin=tlacodeNextLine.length() + numberOfLeftTrimmedTokens;
  mappingVectorNextLine.addElement(new MappingObject.BeginTLAToken(objBegin));
  mappingVectorNextLine.addElement(new MappingObject.EndTLAToken(objBegin + trimmedToken.length()));
  tlacodeNextLine=tlacodeNextLine + token;
}

private void addOneTokenToTLA ( String token ) { String trimmedToken = token . trim ( ) ; int numberOfLeftTrimmedTokens = ( trimmedToken . length ( ) == 0 ) ? - 1 : token . indexOf ( trimmedToken . charAt ( 0 ) ) ; if ( numberOfLeftTrimmedTokens == - 1 ) { numberOfLeftTrimmedTokens = 0 ; trimmedToken = token ; } int objBegin = tlacodeNextLine . length ( ) + numberOfLeftTrimmedTokens ; mappingVectorNextLine . addElement ( new MappingObject . BeginTLAToken ( objBegin ) ) ; mappingVectorNextLine . addElement ( new MappingObject . EndTLAToken ( objBegin + trimmedToken . length ( ) ) ) ; tlacodeNextLine = tlacodeNextLine + token ; }
adds one token to tlacodenextline , and adds the appropriate begin / endtlatoken objects to mappingvectornextline . the . . . tlatoken objects mark a region that excludes beginning and ending space characters of token - - unless the token has only space characters .
