|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rmi.rmiSynth.lex.Transform
public class Transform
Constructor Summary | |
---|---|
Transform()
|
Method Summary | |
---|---|
static void |
castIt(LexBase lb,
java.lang.String srcClass,
java.lang.String tgtClass)
Substitutes all references to srcClass to tgtClass in the instance of LexBase class (except for clone() method) |
static void |
castParams(LexParam[] prm,
java.lang.String srcClass,
java.lang.String tgtClass)
Substitutes all references to srcClass to tgtClass in the array of parameters (except for clone() method) |
static java.lang.String |
stripPackageName(java.lang.String s)
Removes everything before last dot in a string |
static void |
toRMIClient(LexBase lb,
java.lang.String ServerInter,
java.lang.String ServerClass,
java.lang.String ClientClass,
java.lang.String IP)
Modifies a LexBase class such way that it complies to RMI server specifications Imports java.rmi.* and java.rmi.registry.* |
static void |
toRMIInterface(LexBase lb)
Modifies a LexBase class such way that it complies to RMI interface specifications Adds |
static void |
toRMIServer(LexBase lb,
java.lang.String ServerInter,
java.lang.String ServerClass)
Modifies a LexBase class such way that it complies to RMI server specifications Imports java.rmi.* and java.rmi.registry.* Adds |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transform()
Method Detail |
---|
public static void castIt(LexBase lb, java.lang.String srcClass, java.lang.String tgtClass)
lb
- Instance of LexBase classsrcClass
- Name of the class that
needs to be replacedtgtClass
- Name of the class that will
be put inpublic static void castParams(LexParam[] prm, java.lang.String srcClass, java.lang.String tgtClass)
prm
- Array of parameterssrcClass
- Name of the class that
needs to be replacedtgtClass
- Name of the class that will
be put inpublic static java.lang.String stripPackageName(java.lang.String s)
String
- to be stripped - public static void toRMIInterface(LexBase lb)
lb
- Instance of LexBase classpublic static void toRMIServer(LexBase lb, java.lang.String ServerInter, java.lang.String ServerClass)
lb
- Instance of LexBase
classServerInter
- Name of interface to
implementServerClass
- Name of new classpublic static void toRMIClient(LexBase lb, java.lang.String ServerInter, java.lang.String ServerClass, java.lang.String ClientClass, java.lang.String IP)
lb
- Instance of LexBase
classServerInter
- Name of interface to
instanciateServerClass
- Name of server class to
connect toClientClass
- Name of new class to
createfwdMethod
- Method from server which
is calledIP
- Address of server to
connect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |