|
RSE Release 3.2 |
|||||||||
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. |
java.lang.String |
getQualifiedClassName(java.io.File classFile)
Gets the qualified class name. |
java.lang.String |
getQualifiedClassName(java.io.InputStream stream)
Gets the qualified class name for the class represented by the given input stream. |
java.lang.String |
getQualifiedClassName(java.lang.String classFilePath)
Gets the qualified class name for the file with the given path. |
boolean |
isRunnable(java.io.File classFile)
Returns whether the class is runnable, i.e. whether it contains public
static void main (String[]) method. |
boolean |
isRunnable(java.io.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(java.lang.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(java.lang.String classFilePath) throws java.io.IOException
public
static void main (String[])
method.
classFilePath
- the class file path.
true
if the class file is runnable, false
otherwise.
java.io.IOException
- if an I/O error occurs.public boolean isRunnable(java.io.File classFile) throws java.io.IOException
public
static void main (String[])
method.
classFile
- the class file.
true
if the class file is runnable, false
otherwise.
java.io.IOException
- if an I/O error occurs.public boolean isRunnable(java.io.InputStream stream) throws java.io.IOException
public static void main (String[])
method.
stream
- the input stream.
true
if the class file is runnable, false
otherwise.
java.io.IOException
- if an I/O error occurs.public java.lang.String getQualifiedClassName(java.lang.String classFilePath) throws java.io.IOException
classFilePath
- the class file path.
java.io.IOException
- if an I/O error occurs.public java.lang.String getQualifiedClassName(java.io.File classFile) throws java.io.IOException
classFile
- the class file.
java.io.IOException
- if an I/O error occurs.public java.lang.String getQualifiedClassName(java.io.InputStream stream) throws java.io.IOException
stream
- the input stream representing a class.
java.io.IOException
- if an I/O error occurs.
|
RSE Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |