code: public static int indexOfSourceStart( String code ) {
  		int state = 0;
  
  		int indexLineStart = 0;
  		char previous = 0;
  		boolean justEntered = false;
  
  		StringBuilder buffer = new StringBuilder(1024);
  
  		for (int i = 0; i < code.length(); i++) {
  			char c = code.charAt(i);
  
  			if( state == 1 ) {
  				if( justEntered ) {
  					justEntered = false;
  					if( c == '*' ) {
  						return indexLineStart;
  					}
  				}
  				if( previous == '*' && c == '/') {
  					state = 0;
  				}
  			} else if( state == 0 ){
  				if( previous == '/' && c == '/' ) {
  					state = 2;
  				} else if( previous == '/' && c == '*') {
  					state = 1;
  					justEntered = true;
  				} else {
  					buffer.append(c);
  				}
  			}
  
  			if( c == '\n' ) {
  				if( buffer.toString().contains("class")) {
  					return indexLineStart;
  				}
  				buffer.delete(0,buffer.length());
  				indexLineStart = i+1;
  				if( state == 2 ) {
  					state = 0;
  				}
  			}
  
  			previous = c;
  		}
  		if( buffer.toString().contains("class")) {
  			return indexLineStart;
  		} else{
  			return 0;
  		}
  	}
docs: Finds the first javadoc OR the start of the class, which ever comes first.
  This does require some thought.  The word class can easily be inside a comment.
  Comments may or may not be there.  Always the potential for stray //