1 11 package org.eclipse.jdt.core; 12 13 import org.eclipse.core.resources.IResource; 14 import org.eclipse.core.runtime.IAdaptable; 15 import org.eclipse.core.runtime.IPath; 16 import org.eclipse.core.runtime.IProgressMonitor; 17 import org.eclipse.core.runtime.jobs.ISchedulingRule; 18 19 35 public interface IJavaElement extends IAdaptable { 36 37 41 int JAVA_MODEL = 1; 42 43 47 int JAVA_PROJECT = 2; 48 49 53 int PACKAGE_FRAGMENT_ROOT = 3; 54 55 59 int PACKAGE_FRAGMENT = 4; 60 61 65 int COMPILATION_UNIT = 5; 66 67 71 int CLASS_FILE = 6; 72 73 77 int TYPE = 7; 78 79 83 int FIELD = 8; 84 85 89 int METHOD = 9; 90 91 95 int INITIALIZER = 10; 96 97 101 int PACKAGE_DECLARATION = 11; 102 103 107 int IMPORT_CONTAINER = 12; 108 109 113 int IMPORT_DECLARATION = 13; 114 115 120 int LOCAL_VARIABLE = 14; 121 122 127 int TYPE_PARAMETER = 15; 128 129 149 boolean exists(); 150 151 160 IJavaElement getAncestor(int ancestorType); 161 162 184 String getAttachedJavadoc(IProgressMonitor monitor) throws JavaModelException; 185 186 204 IResource getCorrespondingResource() throws JavaModelException; 205 206 211 String getElementName(); 212 213 221 int getElementType(); 222 223 232 String getHandleIdentifier(); 233 234 240 IJavaModel getJavaModel(); 241 242 252 IJavaProject getJavaProject(); 253 254 264 IOpenable getOpenable(); 265 266 273 IJavaElement getParent(); 274 275 287 IPath getPath(); 288 289 300 IJavaElement getPrimaryElement(); 301 302 314 IResource getResource(); 315 316 323 ISchedulingRule getSchedulingRule(); 324 325 334 IResource getUnderlyingResource() throws JavaModelException; 335 336 348 boolean isReadOnly(); 349 350 boolean isStructureKnown() throws JavaModelException; 365 } 366 | Popular Tags |