|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.copernicus.c.OverriddenMethodGenerator
public class OverriddenMethodGenerator
A class that handles generation and management of Java methods that are over-ridden by pre-defined C code. The class allows conventional java methods to be replaced with pre-defined C code. This may be done for platform-specificness, correctness or performance considerations. Note that "overridden" here means that the code for a method is replaced with either dummy or user-defined C code. It does not refer to overriding methods by inheritance in java.
| Red (ankush) |
| Red (ankush) |
| Constructor Summary | |
|---|---|
OverriddenMethodGenerator()
|
|
| Method Summary | |
|---|---|
protected static java.lang.String |
_getBodyCode(soot.SootMethod method)
Returns the code for the body of a given overridden method. |
protected static java.lang.String |
_getHeaderCode(soot.SootMethod method)
Returns the code for the header of the overridden method. |
static java.lang.String |
fileContainingCodeFor(soot.SootMethod method)
Return the name of the file where the C code for an overridden method should be. |
static java.lang.String |
getCode(soot.SootMethod method)
Returns the code for a given overridden method. |
static java.lang.String |
getOverriddenBodyLib()
Returns the location of the directory containing the overridden bodies for methods. |
static void |
init()
Perform initialization functions and set up the list of force-overridden methods. |
static boolean |
isOverridden(soot.SootClass sootClass)
Checks if the given class is overridden. |
static boolean |
isOverridden(soot.SootMethod method)
Checks if the given method is overridden. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OverriddenMethodGenerator()
| Method Detail |
|---|
public static java.lang.String fileContainingCodeFor(soot.SootMethod method)
method - The method.
public static java.lang.String getCode(soot.SootMethod method)
method - The method for which C code is needed.
public static java.lang.String getOverriddenBodyLib()
public static void init()
public static boolean isOverridden(soot.SootMethod method)
method - The method to be checked.
public static boolean isOverridden(soot.SootClass sootClass)
sootClass - The class to check.
protected static java.lang.String _getBodyCode(soot.SootMethod method)
method - The overridden method.
protected static java.lang.String _getHeaderCode(soot.SootMethod method)
method - The overridden method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||