|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mit.ai.psg.jeva.GenerateProxyClass
generateClass(InterpretedClass) generates the proxy
class for an interpreted object from the InterpretedClass. The
proxy class has the correct signature for the class, but calls the
interpreted methods and constructors for all its operations.
Note: if class calls super.methodName(..), then we must add some private methods to implement the super call. The private methods are of the form private TYPE $super$methodName(arg1..){ return super.methodName(arg1..);}
| Constructor Summary | |
GenerateProxyClass()
|
|
| Method Summary | |
static long |
dateSource(InterpretedClass aClass)
if aClass was read from a .java source file, return modification date of source file at time it was read; else return 0L if not read from a file. |
static void |
decache()
decache classes that have been generated so far this session |
static String |
defaultValueSource(Class storeType)
generate source code for the default value for a type, e.g., "false" for boolean, "0" for numbers, "null" for non-primitive types |
static String |
defaultValueSource(IClass storeType)
generate source code for the default value for a type, e.g., "false" for boolean, "0" for numbers, "null" for non-primitive types |
static Class |
generateClass(InterpretedClass iClass)
Generate proxy class for iClass. |
static Set |
generateCompileSet(InterpretedClass iClass)
From a verified InterpretedClass C for which a proxy class is to be generated, generate a list of interpreted classes which must also have their proxy classes written out along with C in order for C's proxy class to be compiled. |
static String |
generateSource(InterpretedClass iClass)
generate compilation unit for a proxy class for iClass |
static String |
unwrapExpressionIfPrimitive(String expr,
Class type)
generate source code to unwrap a value if it is primitive, e.g., ("i", int.class)-->"((Integer)i).intValue()", ("i", Object.class)-->"i" |
static String |
wrapExpressionIfPrimitive(String expr,
Class type)
generate source code to wrap a value if it is primitive, e.g., ("i", int.class) --> "new Integer(i)", ("i", Object.class) --> "i" |
static String |
wrapExpressionIfPrimitive(String expr,
IClass type)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public GenerateProxyClass()
| Method Detail |
public static Class generateClass(InterpretedClass iClass)
public static long dateSource(InterpretedClass aClass)
public static void decache()
public static Set generateCompileSet(InterpretedClass iClass)
public static String generateSource(InterpretedClass iClass)
public static String wrapExpressionIfPrimitive(String expr,
Class type)
public static String wrapExpressionIfPrimitive(String expr,
IClass type)
public static String unwrapExpressionIfPrimitive(String expr,
Class type)
public static final String defaultValueSource(Class storeType)
public static final String defaultValueSource(IClass storeType)
|
Copyright (c) 1996-1999 Massachusetts Institute of Technology Feedback: jeva-feedback@ai.mit.edu |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||