public abstract class ClasspathEntry extends Object implements ClasspathComponent
Modifier and Type | Field and Description |
---|---|
protected static 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(String newNodeName,
ClassTreeNode parentNode,
boolean packageNode,
DefaultTreeModel model,
boolean reset)
Convenience method to get a node or add a new class of package node to
a parent node.
|
boolean |
equals(Object other) |
protected File |
getFile()
Get the file for the classpath entry.
|
String |
getFileName()
Get the name of the classpath entry.
|
int |
hashCode() |
void |
removeClasspathChangeListener(ClasspathChangeListener listener)
Remove a ClasspathChangeListener.
|
void |
setFileName(String fileName)
Set the name of the classpath entry.
|
protected String |
stripClassSuffix(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 String CLASSFILE_SUFFIX
public String getFileName()
public void setFileName(String fileName)
fileName
- the name.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 File getFile()
protected ClassTreeNode addOrFindNode(String newNodeName, ClassTreeNode parentNode, boolean packageNode, 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.