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

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/ITypeBinding.java (-3 / +6 lines)
Lines 751-761 Link Here
751
	 * <p>
751
	 * <p>
752
	 * A local class is any nested class or enum type not declared as a member
752
	 * A local class is any nested class or enum type not declared as a member
753
	 * of another class or interface. A local class is a subspecies of nested
753
	 * of another class or interface. A local class is a subspecies of nested
754
	 * type, and mutually exclusive with member types. Note that anonymous
754
	 * type, and mutually exclusive with member types. For anonymous
755
	 * classes are a subspecies of local classes.
755
	 * classes, which are considered a subspecies of local classes, this method
756
	 * returns true. 
756
	 * </p>
757
	 * </p>
757
	 * <p>
758
	 * <p>
758
	 * Also note that interfaces and annotation types cannot be local.
759
	 * Note: This deviates from JLS3 14.3, which states that anonymous types are 
760
	 * not local types since they do not have a name. Also note that interfaces 
761
	 * and annotation types cannot be local.
759
	 * </p>
762
	 * </p>
760
	 *
763
	 *
761
	 * @return <code>true</code> if this type binding is for a local class or
764
	 * @return <code>true</code> if this type binding is for a local class or
(-)model/org/eclipse/jdt/core/IType.java (-1 / +7 lines)
Lines 906-916 Link Here
906
	boolean isAnnotation() throws JavaModelException;
906
	boolean isAnnotation() throws JavaModelException;
907
907
908
	/**
908
	/**
909
	 * Returns whether this type represents a local type.
909
	 * Returns whether this type represents a local type. For an anonymous type, 
910
	 * this method returns true.
911
	 * <p>
912
	 * Note: This deviates from JLS3 14.3, which states that anonymous types are 
913
	 * not local types since they do not have a name.
914
	 * </p>
910
	 *
915
	 *
911
	 * @exception JavaModelException if this element does not exist or if an
916
	 * @exception JavaModelException if this element does not exist or if an
912
	 *		exception occurs while accessing its corresponding resource.
917
	 *		exception occurs while accessing its corresponding resource.
913
	 * @return true if this type represents a local type, false otherwise
918
	 * @return true if this type represents a local type, false otherwise
919
	 * @see org.eclipse.jdt.core.dom.ITypeBinding#isLocal()
914
	 * @since 2.0
920
	 * @since 2.0
915
	 */
921
	 */
916
	boolean isLocal() throws JavaModelException;
922
	boolean isLocal() throws JavaModelException;

Return to bug 339337