|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.services.clientserver.java.ClassFileUtil
public class ClassFileUtil
Singleton class for obtaining various information about class files.
Method Summary | |
---|---|
static ClassFileUtil |
getInstance()
Returns the singleton instance. |
String |
getQualifiedClassName(File classFile)
Gets the qualified class name. |
String |
getQualifiedClassName(InputStream stream)
Gets the qualified class name for the class represented by the given input stream. |
String |
getQualifiedClassName(String classFilePath)
Gets the qualified class name for the file with the given path. |
boolean |
isRunnable(File classFile)
Returns whether the class is runnable, i.e. whether it contains public
static void main (String[]) method. |
boolean |
isRunnable(InputStream stream)
Returns whether the class represented by the given input stream is runnable, i.e. whether it contains public static void main (String[]) method. |
boolean |
isRunnable(String classFilePath)
Returns whether the class with the given path is runnable, i.e. whether it contains public
static void main (String[]) method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final ClassFileUtil getInstance()
public boolean isRunnable(String classFilePath) throws IOException
public
static void main (String[])
method.
classFilePath
- the class file path.
true
if the class file is runnable, false
otherwise.
IOException
- if an I/O error occurs.public boolean isRunnable(File classFile) throws IOException
public
static void main (String[])
method.
classFile
- the class file.
true
if the class file is runnable, false
otherwise.
IOException
- if an I/O error occurs.public boolean isRunnable(InputStream stream) throws IOException
public static void main (String[])
method.
stream
- the input stream.
true
if the class file is runnable, false
otherwise.
IOException
- if an I/O error occurs.public String getQualifiedClassName(String classFilePath) throws IOException
classFilePath
- the class file path.
IOException
- if an I/O error occurs.public String getQualifiedClassName(File classFile) throws IOException
classFile
- the class file.
IOException
- if an I/O error occurs.public String getQualifiedClassName(InputStream stream) throws IOException
stream
- the input stream representing a class.
IOException
- if an I/O error occurs.
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |