public abstract class ClasspathEntry extends java.lang.Object implements ClasspathComponent
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CLASSFILE_SUFFIX
Suffix for class files.
|
Constructor and Description |
---|
ClasspathEntry() |
Modifier and Type | Method and Description |
---|---|
void |
addClasspathChangeListener(ClasspathChangeListener listener)
Add a ClasspathChangeListener.
|
protected ClassTreeNode |
addOrFindNode(java.lang.String newNodeName,
ClassTreeNode parentNode,
boolean packageNode,
javax.swing.tree.DefaultTreeModel model,
boolean reset)
Convenience method to get a node or add a new class of package node to
a parent node.
|
boolean |
equals(java.lang.Object other) |
protected java.io.File |
getFile()
Get the file for the classpath entry.
|
java.lang.String |
getFileName()
Get the name of the classpath entry.
|
int |
hashCode() |
void |
removeClasspathChangeListener(ClasspathChangeListener listener)
Remove a ClasspathChangeListener.
|
void |
setFileName(java.lang.String fileName)
Set the name of the classpath entry.
|
protected java.lang.String |
stripClassSuffix(java.lang.String name)
Strip the class suffix from the supplied file name.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
findClass, mergeClassesIntoTree
protected static final java.lang.String CLASSFILE_SUFFIX
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- the name.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void addClasspathChangeListener(ClasspathChangeListener listener)
ClasspathComponent
addClasspathChangeListener
in interface ClasspathComponent
listener
- the listenerpublic void removeClasspathChangeListener(ClasspathChangeListener listener)
ClasspathComponent
removeClasspathChangeListener
in interface ClasspathComponent
listener
- the listenerprotected java.io.File getFile()
protected ClassTreeNode addOrFindNode(java.lang.String newNodeName, ClassTreeNode parentNode, boolean packageNode, javax.swing.tree.DefaultTreeModel model, boolean reset)
newNodeName
- the name of the new node.parentNode
- the parent node.packageNode
- whether the new node is a package node or not.model
- the tree model.reset
- whether a reset operation is in progress.protected java.lang.String stripClassSuffix(java.lang.String name)
name
- the file name.