public void add(Token token){
  if (isMedia()) {
    throw new AssertionError("media ");
  }
  tokens.add(token);
}

public void add ( Token token ) { if ( isMedia ( ) ) { throw new AssertionError ( "media " ) ; } tokens . add ( token ) ; }
adds the given token to this part .
