|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gjt.jclasslib.browser.config.classpath.ClasspathEntry
public abstract class ClasspathEntry
Base class for classpath entries.
Field Summary | |
---|---|
protected static java.lang.String |
CLASSFILE_SUFFIX
Suffix for class files. |
Constructor Summary | |
---|---|
ClasspathEntry()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gjt.jclasslib.browser.config.classpath.ClasspathComponent |
---|
findClass, mergeClassesIntoTree |
Field Detail |
---|
protected static final java.lang.String CLASSFILE_SUFFIX
Constructor Detail |
---|
public ClasspathEntry()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |