|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.copernicus.c.RequiredFileGenerator
public class RequiredFileGenerator
A class that generates the other required files in the transitive closure.
| Red (ankush) |
| Red (ankush) |
| Constructor Summary | |
|---|---|
RequiredFileGenerator()
|
|
| Method Summary | |
|---|---|
static void |
generateTransitiveClosureOf(java.lang.String classPath,
java.lang.String className)
Generate the .h files for all classes in the transitive closure of the given class, and the .c files for required classes only. |
static java.util.HashSet |
generateUserClasses(java.lang.StringBuffer code)
Appends the list of C files corresponding to user classes to a given StringBuffer and returns the list of C files corresponding to library files. |
static java.util.Collection |
getRequiredClasses()
Returns the set of all required classes. |
void |
init(java.lang.String classPath,
java.lang.String className)
Initialize and compute the required classes and methods. |
static boolean |
isRequired(soot.SootClass source)
Returns whether a given class is required or not. |
static boolean |
isRequired(soot.SootField field)
Returns whether a given field is required or not. |
static boolean |
isRequired(soot.SootMethod method)
Returns whether a given method is required or not. |
static boolean |
isRequired(soot.Type type)
Returns whether a given Type is required or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RequiredFileGenerator()
| Method Detail |
|---|
public static void generateTransitiveClosureOf(java.lang.String classPath,
java.lang.String className)
throws java.io.IOException
classPath - The classPath.className - The main class.
java.io.IOException - If file I/O errors occur.public static java.util.HashSet generateUserClasses(java.lang.StringBuffer code)
code - The StringBuffer to which the C filenames of user
classes are to be added.
public static java.util.Collection getRequiredClasses()
public void init(java.lang.String classPath,
java.lang.String className)
classPath - The classpath.className - The name of the class which we will take as the root
from which others are called.public static boolean isRequired(soot.SootClass source)
source - Any class.
public static boolean isRequired(soot.SootField field)
field - Any field.
public static boolean isRequired(soot.SootMethod method)
method - Any method.
public static boolean isRequired(soot.Type type)
type - The type to be checked.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||