public interface IClasspathAttribute
newClasspathAttribute(String name, String value).JavaCore#newContainerEntry(
org.eclipse.core.runtime.IPath containerPath,
IAccessRule[] accessRules,
IClasspathAttribute[] extraAttributes,
boolean isExported),
JavaCore#newLibraryEntry(
org.eclipse.core.runtime.IPath path,
org.eclipse.core.runtime.IPath sourceAttachmentPath,
org.eclipse.core.runtime.IPath sourceAttachmentRootPath,
IAccessRule[] accessRules,
IClasspathAttribute[] extraAttributes,
boolean isExported),
JavaCore#newProjectEntry(
org.eclipse.core.runtime.IPath path,
IAccessRule[] accessRules,
boolean combineAccessRestrictions,
IClasspathAttribute[] extraAttributes,
boolean isExported),
JavaCore#newSourceEntry(
org.eclipse.core.runtime.IPath path,
org.eclipse.core.runtime.IPath[] inclusionPatterns,
org.eclipse.core.runtime.IPath[] exclusionPatterns,
org.eclipse.core.runtime.IPath specificOutputLocation,
IClasspathAttribute[] extraAttributes),
JavaCore#newVariableEntry(
org.eclipse.core.runtime.IPath variablePath,
org.eclipse.core.runtime.IPath variableSourceAttachmentPath,
org.eclipse.core.runtime.IPath variableSourceAttachmentRootPath,
IAccessRule[] accessRules,
IClasspathAttribute[] extraAttributes,
boolean isExported)| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTERNAL_ANNOTATION_PATH
Constant for the name of the external annotation path attribute.
|
static java.lang.String |
IGNORE_OPTIONAL_PROBLEMS
Constant for the name of the ignore optional compile problems attribute.
|
static java.lang.String |
INDEX_LOCATION_ATTRIBUTE_NAME
Constant for the name of the index location attribute.
|
static java.lang.String |
JAVADOC_LOCATION_ATTRIBUTE_NAME
Constant for the name of the javadoc location attribute.
|
static java.lang.String |
OPTIONAL
Constant for the name of the optional attribute.
|
static java.lang.String |
SOURCE_ATTACHMENT_ENCODING
Constant for the name of the encoding to be used for source attachments.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Returns the name of this classpath attribute.
|
java.lang.String |
getValue()
Returns the value of this classpath attribute.
|
static final java.lang.String JAVADOC_LOCATION_ATTRIBUTE_NAME
The value for this attribute has to be the string representation of a URL.
static final java.lang.String INDEX_LOCATION_ATTRIBUTE_NAME
The value for this attribute has to be the string representation of a URL. It should point to an existing index file in a folder or a jar. The URL can also be of platform protocol.
static final java.lang.String SOURCE_ATTACHMENT_ENCODING
The value of this attribute has to be a string representation of a valid encoding. The encoding for a source attachment is determined in the following order:
org.eclipse.core.resources.IFile#getCharset(false) org.eclipse.core.resources.IFile#getCharset(),
Constant Field Valuesstatic final java.lang.String IGNORE_OPTIONAL_PROBLEMS
"true" or
"false". When not present, "false" is assumed.
If the value of this attribute is "true", all optional problems
from the source folder described by this classpath entry will not be reported
by the compiler.static final java.lang.String OPTIONAL
"true" or "false".
When not present, "false" is assumed.
If the value of this attribute is "true", the classpath entry
is optional. If the underlying resource or jar file doesn't exist, no error
is reported and the classpath entry is ignored.static final java.lang.String EXTERNAL_ANNOTATION_PATH
The value for this attribute has to be the string representation of a path. It should point to an existing directory where external annotations can be found to support annotation based null analysis involving 3rd party libraries.