public class ClassFile extends Object
Modifier and Type | Method and Description |
---|---|
static ClassFile |
getClassFile(File file)
This method creates a new instance of ClassFile for the given file, if and only if the given file
is a valid Java Class File.
|
String |
getClassName()
This method returns the full qualified class name of the class which is stored into this file.
|
URL |
getClassURL()
This method returns an URL which can be used to load this class through an URLClassLoader.
|
File |
getFile()
This method returns the File-Object to this ClassFile
|
String |
getParentClass()
This method returns the parent class of the class which is stored into this file.
|
String |
toString() |
public static ClassFile getClassFile(File file) throws UnsupportedFileException
file
- class file as FileUnsupportedFileException
- if the file is no class file or the file isn't readable this exeption will be thrownpublic File getFile()
public String getClassName()
public String getParentClass()
public URL getClassURL() throws VipToolException
VipToolException