Class ExternalJavaProject
- All Implemented Interfaces:
IBufferChangedListener
,IJavaElement
,IJavaProject
,IOpenable
,IParent
,SuffixConstants
,org.eclipse.core.runtime.IAdaptable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
JavaProject.ClasspathResolutionBreakpointListener
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
CLASSPATH_FILENAME, DEFAULT_PREFERENCES_DIRNAME, INVALID_CLASSPATH, JAVA_CORE_PREFS_FILE, NO_PREREQUISITES, project
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER
Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaProject
CLASSPATH_FILE_NAME
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_java, EXTENSION_JAVA, EXTENSION_jmod, EXTENSION_JMOD, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_java, SUFFIX_STRING_JAVA
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if this handle represents the same Java project as the given handle.boolean
exists()
Returns whether this Java element exists in the model.Helper method for returning one option value only.boolean
isOnClasspath
(IJavaElement element) Returns whether the given element is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.boolean
isOnClasspath
(org.eclipse.core.resources.IResource resource) Returns whether the given resource is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.protected org.eclipse.core.runtime.IStatus
validateExistence
(org.eclipse.core.resources.IResource underlyingResource) Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject
addCPResolutionBPListener, areClasspathsEqual, buildStructure, calculateHashCode, canonicalizedPath, close, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computePackageFragmentRoots, computeSharedPropertyFileName, contains, createClasspathProblemMarker, createElementInfo, createPackageFragementKey, decodeClasspath, decodeClasspathEntry, defaultClasspath, defaultOutputLocation, defaultRootModules, determineModulesOfProjectsWithNonEmptyClasspath, encodeClasspath, encodeClasspathEntry, findContainingClasspathEntry, findElement, findElement, findElement, findModule, findPackageFragment, findPackageFragment, findPackageFragmentRoot, findPackageFragmentRoot0, findPackageFragmentRoots, findType, findType, findType, findType, findType, findType, findType, findType, findUnfilteredPackageFragmentRoots, flushClasspathProblemMarkers, getAccessRestrictions, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAllPackageFragmentRoots, getAutomaticModuleDescription, getClasspathEntryFor, getCycleMarker, getEclipsePreferences, getElementName, getElementType, getExpandedClasspath, getExpandedClasspath, getFolderPackageFragmentRoot, getHandleFromMemento, getHandleMementoDelimiter, getJavaModel, getJavaProject, getJavaProjectElementInfo, getManifest, getModuleDescription, getNonJavaResources, getOptions, getOutputLocation, getOwnModuleDescription, getPackageFragmentRoot, getPackageFragmentRoot, getPackageFragmentRoot, getPackageFragmentRoot, getPackageFragmentRoot0, getPackageFragmentRoots, getPackageFragmentRoots, getPackageFragments, getPackageFragmentsInRoots, getPatchedModules, getPath, getPerProjectInfo, getProject, getProjectCache, getProjectCache, getRawClasspath, getReferencedClasspathEntries, getRequiredProjectNames, getResolvedClasspath, getResolvedClasspath, getSharedProperty, getSourceMapper, getUnderlyingResource, hasBuildState, hasClasspathCycle, hasCycleMarker, hasJavaNature, hasSource, internalDefaultRootModules, newEvaluationContext, newNameLookup, newNameLookup, newNameLookup, newNameLookup, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newSearchableNameEnvironment, newTemporaryInfo, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, projectPrerequisites, readFileEntriesWithException, readOutputLocation, readRawClasspath, removeCPResolutionBPListener, resetCaches, resetResolvedClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resolveClasspath, resource, rootID, setModuleDescription, setOption, setOptions, setOutputLocation, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setRawClasspath, setSharedProperty, updateCycleParticipants, validateCycles, writeFileEntries, writeFileEntries
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Openable
bufferChanged, canBeRemovedFromCache, canBufferBeRemovedFromCache, closeBuffer, closing, codeComplete, codeSelect, findRecommendedLineSeparator, generateInfos, getBuffer, getBufferFactory, getBufferManager, getCorrespondingResource, getOpenable, getPackageFragmentRoot, getResource, hasBuffer, hasUnsavedChanges, ignoreErrorStatus, isConsistent, isOpen, isSourceElement, isStructureKnown, makeConsistent, open, openAncestors, openBuffer, resource, resourceExists, save
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, escapeMementoName, findNode, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getCompilationUnit, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getHandleMemento, getJavadocBaseLocation, getLibraryJavadocLocation, getOpenableParent, getParent, getPrimaryElement, getPrimaryElement, getSchedulingRule, getSourceElementAt, getURLContents, hasChildren, hashCode, isAncestorOf, isReadOnly, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resetHashCode, resolved, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCache
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isReadOnly, isStructureKnown
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable
findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, save
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren, hasChildren
-
Field Details
-
EXTERNAL_PROJECT_NAME
- See Also:
-
-
Constructor Details
-
ExternalJavaProject
-
-
Method Details
-
equals
Description copied from class:JavaProject
Returns true if this handle represents the same Java project as the given handle. Two handles represent the same project if they are identical or if they represent a project with the same underlying resource and occurrence counts.- Overrides:
equals
in classJavaProject
- See Also:
-
exists
public boolean exists()Description copied from interface:IJavaElement
Returns whether this Java element exists in the model.Java elements are handle objects that may or may not be backed by an actual element. Java elements that are backed by an actual element are said to "exist", and this method returns
true
. For Java elements that are not working copies, it is always the case that if the element exists, then its parent also exists (provided it has one) and includes the element as one of its children. It is therefore possible to navigated to any existing Java element from the root of the Java model along a chain of existing Java elements. On the other hand, working copies are said to exist until they are destroyed (withIWorkingCopy.destroy
). Unlike regular Java elements, a working copy never shows up among the children of its parent element (which may or may not exist).- Specified by:
exists
in interfaceIJavaElement
- Overrides:
exists
in classOpenable
- Returns:
true
if this element exists in the Java model, andfalse
if this element does not exist- See Also:
-
getOption
Description copied from interface:IJavaProject
Helper method for returning one option value only. Equivalent to(String)this.getOptions(inheritJavaCoreOptions).get(optionName)
Note that it may answernull
if this option does not exist, or if there is no custom value for it.For a complete description of the configurable options, see
JavaCore#getDefaultOptions
.- Specified by:
getOption
in interfaceIJavaProject
- Overrides:
getOption
in classJavaProject
- Parameters:
optionName
- the name of an optioninheritJavaCoreOptions
- - boolean indicating whether JavaCore options should be inherited as well- Returns:
- the String value of a given option
- See Also:
-
isOnClasspath
Description copied from interface:IJavaProject
Returns whether the given element is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.- Specified by:
isOnClasspath
in interfaceIJavaProject
- Overrides:
isOnClasspath
in classJavaProject
- Parameters:
element
- the given element- Returns:
true
if the given element is on the classpath of this project,false
otherwise- See Also:
-
isOnClasspath
public boolean isOnClasspath(org.eclipse.core.resources.IResource resource) Description copied from interface:IJavaProject
Returns whether the given resource is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.- Specified by:
isOnClasspath
in interfaceIJavaProject
- Overrides:
isOnClasspath
in classJavaProject
- Parameters:
resource
- the given resource- Returns:
true
if the given resource is on the classpath of this project,false
otherwise- See Also:
-
validateExistence
protected org.eclipse.core.runtime.IStatus validateExistence(org.eclipse.core.resources.IResource underlyingResource) - Overrides:
validateExistence
in classJavaProject
-