View | Details | Raw Unified | Return to bug 296708 | Differences between
and this patch

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/ASTParser.java (-8 / +8 lines)
Lines 459-465 Link Here
459
	 * <code>K_COMPILATION_UNIT</code>.
459
	 * <code>K_COMPILATION_UNIT</code>.
460
	 * </p>
460
	 * </p>
461
	 * 
461
	 * 
462
	 * <p>This kind is not used the AST is built using
462
	 * <p>This kind is not used when the AST is built using
463
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
463
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
464
	 * 
464
	 * 
465
	 * @param kind the kind of construct to parse: one of
465
	 * @param kind the kind of construct to parse: one of
Lines 481-487 Link Here
481
	/**
481
	/**
482
	 * Sets the source code to be parsed.
482
	 * Sets the source code to be parsed.
483
	 *
483
	 *
484
	 * <p>This source is not used the AST is built using 
484
	 * <p>This source is not used when the AST is built using 
485
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
485
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
486
	 *
486
	 *
487
	 * @param source the source string to be parsed,
487
	 * @param source the source string to be parsed,
Lines 499-505 Link Here
499
	 * options) based on the given compilation unit, in a manner
499
	 * options) based on the given compilation unit, in a manner
500
	 * equivalent to <code>setProject(source.getJavaProject())</code>
500
	 * equivalent to <code>setProject(source.getJavaProject())</code>
501
	 *
501
	 *
502
	 * <p>This source is not used the AST is built using 
502
	 * <p>This source is not used when the AST is built using 
503
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
503
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
504
	 * 
504
	 * 
505
	 * @param source the Java model compilation unit whose source code
505
	 * @param source the Java model compilation unit whose source code
Lines 517-523 Link Here
517
	 * <p>If the given class file has  no source attachment, the creation of the
517
	 * <p>If the given class file has  no source attachment, the creation of the
518
	 * ast will fail with an IllegalStateException.</p>
518
	 * ast will fail with an IllegalStateException.</p>
519
	 *
519
	 *
520
	 * <p>This source is not used the AST is built using 
520
	 * <p>This source is not used when the AST is built using 
521
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
521
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
522
	 * 
522
	 * 
523
	 * @param source the Java model class file whose corresponding source code
523
	 * @param source the Java model class file whose corresponding source code
Lines 535-541 Link Here
535
	 * <p>If the source is a class file without source attachment, the creation of the
535
	 * <p>If the source is a class file without source attachment, the creation of the
536
	 * ast will fail with an IllegalStateException.</p>
536
	 * ast will fail with an IllegalStateException.</p>
537
	 *
537
	 *
538
	 * <p>This source is not used the AST is built using 
538
	 * <p>This source is not used when the AST is built using 
539
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
539
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
540
	 *
540
	 *
541
	 * @param source the Java model compilation unit or class file whose corresponding source code
541
	 * @param source the Java model compilation unit or class file whose corresponding source code
Lines 559-565 Link Here
559
     * By default, the entire source string will be parsed
559
     * By default, the entire source string will be parsed
560
     * (<code>offset</code> 0 and <code>length</code> -1).
560
     * (<code>offset</code> 0 and <code>length</code> -1).
561
     *
561
     *
562
	 * <p>This range is not used the AST is built using 
562
	 * <p>This range is not used when the AST is built using 
563
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
563
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
564
     *
564
     *
565
     * @param offset the index of the first character to parse
565
     * @param offset the index of the first character to parse
Lines 597-603 Link Here
597
	 * <p>When ignore method bodies is enabled, all method bodies are discarded.
597
	 * <p>When ignore method bodies is enabled, all method bodies are discarded.
598
	 * This has no impact on the binding resolution.</p>
598
	 * This has no impact on the binding resolution.</p>
599
	 *
599
	 *
600
	 * <p>This setting is not used if the kind used in {@link #setKind(int)} is either 
600
	 * <p>This setting is not used when the kind used in {@link #setKind(int)} is either 
601
	 * {@link #K_EXPRESSION} or {@link #K_STATEMENTS}.</p>
601
	 * {@link #K_EXPRESSION} or {@link #K_STATEMENTS}.</p>
602
	 * @since 3.5.2
602
	 * @since 3.5.2
603
	 */
603
	 */
Lines 637-643 Link Here
637
	 * If the source declares a public class name "Bar" in a package "p1.p2" in a project "P" in a source folder "src",
637
	 * If the source declares a public class name "Bar" in a package "p1.p2" in a project "P" in a source folder "src",
638
	 * the name of the compilation unit must be "/P/src/p1/p2/Bar.java".</p>
638
	 * the name of the compilation unit must be "/P/src/p1/p2/Bar.java".</p>
639
	 *
639
	 *
640
	 * <p>This source is not used the AST is built using 
640
	 * <p>This unit name is not used when the AST is built using 
641
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
641
	 * {@link #createASTs(ICompilationUnit[], String[], ASTRequestor, IProgressMonitor)}.</p>
642
	 *
642
	 *
643
	 * @param unitName the name of the compilation unit that would contain the source
643
	 * @param unitName the name of the compilation unit that would contain the source

Return to bug 296708