|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.Openable
org.aspectj.org.eclipse.jdt.internal.core.JavaProject
org.aspectj.org.eclipse.jdt.internal.core.ExternalJavaProject
public class ExternalJavaProject
| Field Summary | |
|---|---|
static java.lang.String |
EXTERNAL_PROJECT_NAME
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaProject |
|---|
CLASSPATH_FILENAME, DEFAULT_PREFERENCES_DIRNAME, INVALID_CLASSPATH, IS_CASE_SENSITIVE, JAVA_CORE_PREFS_FILE, NO_PREREQUISITES, project |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
|---|
JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LOCALVARIABLE, JEM_METHOD, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, parent |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.util.SuffixConstants |
|---|
EXTENSION_aj, EXTENSION_AJ, EXTENSION_class, EXTENSION_CLASS, EXTENSION_jar, EXTENSION_JAR, EXTENSION_java, EXTENSION_JAVA, EXTENSION_zip, EXTENSION_ZIP, SUFFIX_aj, SUFFIX_AJ, SUFFIX_class, SUFFIX_CLASS, SUFFIX_jar, SUFFIX_JAR, SUFFIX_java, SUFFIX_JAVA, SUFFIX_STRING_aj, SUFFIX_STRING_AJ, SUFFIX_STRING_class, SUFFIX_STRING_CLASS, SUFFIX_STRING_jar, SUFFIX_STRING_JAR, SUFFIX_STRING_java, SUFFIX_STRING_JAVA, SUFFIX_STRING_zip, SUFFIX_STRING_ZIP, SUFFIX_zip, SUFFIX_ZIP |
| Constructor Summary | |
|---|---|
ExternalJavaProject(IClasspathEntry[] rawClasspath)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
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. |
java.lang.String |
getOption(java.lang.String optionName,
boolean inheritJavaCoreOptions)
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(IResource resource)
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. |
| 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, hasBuffer, hasUnsavedChanges, isConsistent, isOpen, isSourceElement, isStructureKnown, makeConsistent, open, openBuffer, openParent, parentExists, resourceExists, save |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent |
|---|
getChildren, hasChildren |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getSchedulingRule, isReadOnly, isStructureKnown |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable |
|---|
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, save |
| Field Detail |
|---|
public static final java.lang.String EXTERNAL_PROJECT_NAME
| Constructor Detail |
|---|
public ExternalJavaProject(IClasspathEntry[] rawClasspath)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
JavaProject
equals in class JavaProjectJavaElement.equals(Object)public boolean exists()
IJavaElement
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 (with
IWorkingCopy.destroy). Unlike regular Java elements, a
working copy never shows up among the children of its parent element
(which may or may not exist).
exists in interface IJavaElementexists in class JavaProjecttrue if this element exists in the Java model, and
false if this element does not existIJavaElement
public java.lang.String getOption(java.lang.String optionName,
boolean inheritJavaCoreOptions)
IJavaProject(String)this.getOptions(inheritJavaCoreOptions).get(optionName)
Note that it may answer null 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.
getOption in interface IJavaProjectgetOption in class JavaProjectoptionName - the name of an optioninheritJavaCoreOptions - - boolean indicating whether JavaCore options should be inherited as well
IJavaProject.getOption(String, boolean)public boolean isOnClasspath(IJavaElement element)
IJavaProject
isOnClasspath in interface IJavaProjectisOnClasspath in class JavaProjectelement - the given element
true if the given element is on the classpath of
this project, false otherwiseIClasspathEntry.getInclusionPatterns(),
IClasspathEntry.getExclusionPatterns()public boolean isOnClasspath(IResource resource)
IJavaProject
isOnClasspath in interface IJavaProjectisOnClasspath in class JavaProjectresource - the given element
true if the given element is on the classpath of
this project, false otherwiseIClasspathEntry.getInclusionPatterns(),
IClasspathEntry.getExclusionPatterns()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||