|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fife.rsta.ac.java.JarInfo
public class JarInfo
Information about a jar to add to the "build path" for Java completion. This includes both the jar itself, as well as its source location (e.g. a zip file, jar file or directory).
| Constructor Summary | |
|---|---|
JarInfo(File jarFile)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
int |
compareTo(Object o)
|
boolean |
equals(Object obj)
Returns whether this instance points to the same jar as another instance of JarInfo. |
File |
getJarFile()
Gets the jar file. |
static JarInfo |
getJREJarInfo(File jreHome)
Returns information on the "main" jar for a JRE. |
static JarInfo |
getMainJREJarInfo()
Returns information on the JRE running this application. |
File |
getSourceLocation()
Returns the source location for the jar file. |
int |
hashCode()
|
void |
setJarFile(File jarFile)
Sets the jar file location. |
void |
setSourceLocation(File loc)
Sets the location of the source for this jar file's classes. |
String |
toString()
Returns a string representation of this jar information. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JarInfo(File jarFile)
jarFile - The jar file. This cannot be null.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean equals(Object obj)
equals in class Objectobj - Another JarInfo.
public File getJarFile()
setJarFile(File)public static JarInfo getJREJarInfo(File jreHome)
null if there is not a JRE in
the specified directory.getMainJREJarInfo()public static JarInfo getMainJREJarInfo()
null if an error occurs.getJREJarInfo(File)public File getSourceLocation()
null if there is no attached source location.setSourceLocation(File)public int hashCode()
hashCode in class Objectpublic void setJarFile(File jarFile)
jarFile - The jar file location. This cannot be null.getJarFile()public void setSourceLocation(File loc)
loc - The source location. This should be a zip file, a jar file,
or a directory. This value may be null.getSourceLocation()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||