jdt core - build notes 3.7 stream |
Java development tools core |
Here are the build notes for the Eclipse JDT/Core plug-in project
org.eclipse.jdt.core,
describing bug resolution and substantial changes in the HEAD branch.
For more information on 3.7 planning, please refer to JDT/Core release plan,
the next milestone plan,
the overall official plan,
or the build schedule.
This present document covers all changes since Release 3.5 (also see a summary of API changes).
Maintenance of previous releases of JDT/Core is performed in parallel branches: R3.5.x, R3.4.x, R3.3.x, R3.2.x, R3.1.x, R3.0.x, R2.1.x, R2.0.x, R1.0.x. |
/** * Returns true if this local variable is a method parameter, false otherwise. * * @return true if this local variable is a method parameter, false otherwise * @since 3.7 */ boolean isParameter(); /** * Returns the modifier flags for this local variable. The flags can be examined using class. * * Note that only flags as indicated in the source are returned. * * @return the modifier flags for this local variable * @see Flags * @since 3.7 */ int getFlags(); /** * Returns the declaring member of this local variable. * * This is a handle-only method. * * @return the declaring member of this local variable * @since 3.7 */ IMember getDeclaringMember(); /** * Returns the Java type root in which this local variable is declared. * * This is a handle-only method. * * @return the Java type root in which this local variable is declared * @since 3.7 */ ITypeRoot getTypeRoot();
/** * Returns the Java type root in which this type parameter is declared. * * This is a handle-only method. * * @return the Java type root in which this type parameter is declared * @since 3.7 */ ITypeRoot getTypeRoot();
* FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_FIELD * FORMATTER / Option to insert a new line after an annotation on a field declaration * - option id: "org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field" * - possible values: { INSERT, DO_NOT_INSERT } * - default: INSERT * * FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_METHOD * FORMATTER / Option to insert a new line after an annotation on a method declaration * - option id: "org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method" * - possible values: { INSERT, DO_NOT_INSERT } * - default: INSERT * * FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_PACKAGE * FORMATTER / Option to insert a new line after an annotation on a package declaration * - option id: "org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package" * - possible values: { INSERT, DO_NOT_INSERT } * - default: INSERT * * FORMATTER_INSERT_NEW_LINE_AFTER_ANNOTATION_ON_TYPE * FORMATTER / Option to insert a new line after an annotation on a type declaration * - option id: "org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type" * - possible values: { INSERT, DO_NOT_INSERT } * - default: INSERTThe addition of new lines after annotations has been discussed in bug 308000
have been moved to the org.eclipse.jdt.core.ISourceReference interface. See bug 321764 for details:org.eclipse.jdt.core.IImportDeclaration#getNameRange()
,
org.eclipse.jdt.core.IPackageDeclaration#getNameRange()
/** * Returns the name range associated with this element. * * If the element is an IMember, it returns * the source range of this member's simple name, * or null if this member does not have a name * (for example, an initializer), or if this member does not have * associated source code (for example, a binary type). * * If this element is an IImportDeclaration, the source range * of this import declaration's name, or null if this import * declaration does not have associated source code (for example, a binary type). * The source range for the name includes the trailing '*' if the call to * IImportDeclaration#isOnDemand() returns true. * * If this element is an IPackageDeclaration, the source range of * this package declaration's name, or null if this package * declaration does not have associated source code (for example, a binary type). * * If this element is an IAnnotation, the source range of * this annotation's name, or null if this annotation does not have * associated source code (for example, in a binary type). * * If this element is an ITypeParameter, the source range of this * type parameter's name, or null if this type parameter does not have * associated source code (for example, in a binary type). * * If this element is an ITypeRoot or IImportContainer, it * returns null. * * @return the name range associated with this element, or null if * not available * * @since 3.7 */ ISourceRange getNameRange() throws JavaModelException;
org.eclipse.jdt.core.IImportDeclaration
:
/** * Returns the source range of this import declaration's name, * or null if this import declaration does not have * associated source code (for example, a binary type). * * The source range for the name includes the trailing '*' if the call to * isOnDemand() returns true. * * * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. * @return the source range of this import declaration's name, * or null if this import declaration does not have * associated source code (for example, a binary type) * @since 3.7 */ ISourceRange getNameRange() throws JavaModelException;
org.eclipse.jdt.core.IPackageDeclaration
:
/** * Returns the source range of this package declaration's name, * or null if this package declaration does not have * associated source code (for example, a binary type). * * @exception JavaModelException if this element does not exist or if an * exception occurs while accessing its corresponding resource. * @return the source range of this package declaration's name, * or null if this package declaration does not have * associated source code (for example, a binary type) * @since 3.7 */ ISourceRange getNameRange() throws JavaModelException;
For earlier build notes, also see build notes up to Release 3.6.