<s> package org . eclipse . jdt . core ; import org . eclipse . core . resources . IResource ; import org . eclipse . core . runtime . IAdaptable ; import org . eclipse . core . runtime . IPath ; import org . eclipse . core . runtime . IProgressMonitor ; import org . eclipse . core . runtime . jobs . ISchedulingRule ; public interface IJavaElement extends IAdaptable { int JAVA_MODEL = 1 ; int JAVA_PROJECT = 2 ; int PACKAGE_FRAGMENT_ROOT = 3 ; int PACKAGE_FRAGMENT = 4 ; int COMPILATION_UNIT = 5 ; int CLASS_FILE = 6 ; int TYPE = 7 ; int FIELD = 8 ; int METHOD = 9 ; int INITIALIZER = 10 ; int PACKAGE_DECLARATION = 11 ; int IMPORT_CONTAINER = 12 ; int IMPORT_DECLARATION = 13 ; int LOCAL_VARIABLE = 14 ; int TYPE_PARAMETER = 15 ; int ANNOTATION = 16 ; boolean exists ( ) ; IJavaElement getAncestor ( int ancestorType ) ; String getAttachedJavadoc ( IProgressMonitor monitor ) throws JavaModelException ; IResource getCorrespondingResource ( ) throws JavaModelException ; String getElementName ( ) ; int getElementType ( ) ; String getHandleIdentifier ( ) ; IJavaModel getJavaModel ( ) ; IJavaProject getJavaProject ( ) ; IOpenable getOpenable ( ) ; IJavaElement getParent ( ) ; IPath getPath ( ) ; IJavaElement getPrimaryElement ( ) ; IResource getResource ( ) ; ISchedulingRule getSchedulingRule ( ) ; IResource getUnderlyingResource ( ) throws JavaModelException ; boolean isReadOnly ( ) ; boolean isStructureKnown ( ) throws JavaModelException ; } </s>