public class VariableClasspathEntry extends AbstractRuntimeClasspathEntry
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_ID |
ARCHIVE, BOOTSTRAP_CLASSES, CLASS_PATH, CONTAINER, MODULE_PATH, OTHER, PATCH_MODULE, PROJECT, STANDARD_CLASSES, USER_CLASSES, VARIABLE| Constructor and Description |
|---|
VariableClasspathEntry()
Constructor
|
VariableClasspathEntry(java.lang.String variableString)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildMemento(org.w3c.dom.Document document,
org.w3c.dom.Element memento)
Constructs a memento for this classpath entry in the given
document and element.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns a human readable name for this classpath entry.
|
IRuntimeClasspathEntry[] |
getRuntimeClasspathEntries(ILaunchConfiguration configuration)
Returns the classpath entries this entry is composed of, or an
empty collection if this entry is not a composite entry.
|
int |
getType()
Returns this classpath entry's type.
|
java.lang.String |
getTypeId()
Returns the unique identifier of the extension that contributed
this classpath entry type, or
null if this classpath
entry type was not contributed. |
java.lang.String |
getVariableString() |
int |
hashCode() |
void |
initializeFrom(org.w3c.dom.Element memento)
Initializes this runtime classpath entry from the given memento.
|
void |
setVariableString(java.lang.String variableString) |
abort, getClasspathEntry, getClasspathProperty, getExternalAnnotationsPath, getJavaProject, getLocation, getMemento, getPath, getResource, getRuntimeClasspathEntries, getSourceAttachmentLocation, getSourceAttachmentPath, getSourceAttachmentRootLocation, getSourceAttachmentRootPath, getVariableName, isAutomodule, isComposite, setClasspathProperty, setExternalAnnotationsPath, setJavaProject, setSourceAttachmentPath, setSourceAttachmentRootPathpublic static final java.lang.String TYPE_ID
public VariableClasspathEntry()
public VariableClasspathEntry(java.lang.String variableString)
variableString - the string valueprotected void buildMemento(org.w3c.dom.Document document,
org.w3c.dom.Element memento)
throws CoreException
AbstractRuntimeClasspathEntrybuildMemento in class AbstractRuntimeClasspathEntrydocument - XML documentmemento - element node for client specific attributesCoreException - if unable to create a mementopublic void initializeFrom(org.w3c.dom.Element memento)
throws CoreException
IRuntimeClasspathEntry2memento - memento created by a classpath entry of the same typeCoreException - if unable to initialize from the given mementopublic java.lang.String getTypeId()
IRuntimeClasspathEntry2null if this classpath
entry type was not contributed.null if this classpath
entry type was not contributedpublic IRuntimeClasspathEntry[] getRuntimeClasspathEntries(ILaunchConfiguration configuration) throws CoreException
IRuntimeClasspathEntry2configuration - the context (launch configuration) in which
this runtime classpath entry is being queried for contained
entries, possibly nullCoreException - if unable to retrieve contained entriespublic java.lang.String getName()
IRuntimeClasspathEntry2public int getType()
IRuntimeClasspathEntryPROJECTARCHIVEVARIABLECONTAINEROTHER
Since 3.0, a type of OTHER may be returned.
public java.lang.String getVariableString()
public void setVariableString(java.lang.String variableString)
variableString - The variableString to set.public int hashCode()
public boolean equals(java.lang.Object obj)