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; |