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

Collapse All | Expand All

(-)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: As per JLS3 14.3, anonymous inner classes are not considered local 
913
	 * 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