org.python.compiler
Class ProxyMaker
java.lang.Object
org.python.compiler.ProxyMaker
- All Implemented Interfaces:
- ClassConstants
- Direct Known Subclasses:
- AdapterMaker, JavaMaker
- public class ProxyMaker
- extends Object
- implements ClassConstants
Fields inherited from interface org.python.compiler.ClassConstants |
$clss, $obj, $objArr, $pyCode, $pyComplex, $pyExc, $pyFloat, $pyFrame, $pyFuncTbl, $pyInteger, $pyLong, $pyObj, $pyObjArr, $pyProxy, $pyRunnable, $pyStr, $str, $strArr, $throwable |
Method Summary |
void |
addClassDictInit()
|
void |
addConstructor(String name,
Class[] parameters,
Class ret,
String sig,
int access)
|
void |
addConstructors(Class c)
|
void |
addMethod(Method method,
int access)
|
void |
addProxy()
|
void |
addSuperMethod(Method method,
int access)
|
void |
addSuperMethod(String methodName,
String superName,
String declClass,
Class[] parameters,
Class ret,
String sig,
int access)
|
void |
build()
|
void |
callMethod(Code code,
String name,
Class[] parameters,
Class ret,
Class[] exceptions)
|
void |
callSuper(Code code,
String name,
String superclass,
Class[] parameters,
Class ret,
String sig)
|
void |
doConstants()
|
void |
doJavaCall(Code code,
String name,
String type,
String jcallName)
|
static void |
doNullReturn(Code code,
Class type)
|
static void |
doReturn(Code code,
Class type)
|
static Hashtable |
fillTypes()
|
void |
getArgs(Code code,
Class[] parameters)
|
static OutputStream |
getFile(String d,
String name)
|
static int |
getType(Class c)
|
static File |
makeFilename(String name,
File dir)
|
static String |
makeProxy(Class superclass,
OutputStream ostream)
|
static String |
makeSignature(Class[] sig,
Class ret)
|
static String |
mapClass(Class c)
|
static String |
mapType(Class type)
|
tBoolean
public static final int tBoolean
- See Also:
- Constant Field Values
tByte
public static final int tByte
- See Also:
- Constant Field Values
tShort
public static final int tShort
- See Also:
- Constant Field Values
tInteger
public static final int tInteger
- See Also:
- Constant Field Values
tLong
public static final int tLong
- See Also:
- Constant Field Values
tFloat
public static final int tFloat
- See Also:
- Constant Field Values
tDouble
public static final int tDouble
- See Also:
- Constant Field Values
tCharacter
public static final int tCharacter
- See Also:
- Constant Field Values
tVoid
public static final int tVoid
- See Also:
- Constant Field Values
tOther
public static final int tOther
- See Also:
- Constant Field Values
tNone
public static final int tNone
- See Also:
- Constant Field Values
types
public static Hashtable types
classfile
public ClassFile classfile
myClass
public String myClass
isAdapter
public boolean isAdapter
ProxyMaker
public ProxyMaker(String classname,
Class superclass)
ProxyMaker
public ProxyMaker(String myClass,
Class superclass,
Class[] interfaces)
fillTypes
public static Hashtable fillTypes()
getType
public static int getType(Class c)
mapClass
public static String mapClass(Class c)
mapType
public static String mapType(Class type)
makeSignature
public static String makeSignature(Class[] sig,
Class ret)
doConstants
public void doConstants()
throws Exception
- Throws:
Exception
doReturn
public static void doReturn(Code code,
Class type)
throws Exception
- Throws:
Exception
doNullReturn
public static void doNullReturn(Code code,
Class type)
throws Exception
- Throws:
Exception
callSuper
public void callSuper(Code code,
String name,
String superclass,
Class[] parameters,
Class ret,
String sig)
throws Exception
- Throws:
Exception
doJavaCall
public void doJavaCall(Code code,
String name,
String type,
String jcallName)
throws Exception
- Throws:
Exception
getArgs
public void getArgs(Code code,
Class[] parameters)
throws Exception
- Throws:
Exception
callMethod
public void callMethod(Code code,
String name,
Class[] parameters,
Class ret,
Class[] exceptions)
throws Exception
- Throws:
Exception
addMethod
public void addMethod(Method method,
int access)
throws Exception
- Throws:
Exception
addConstructor
public void addConstructor(String name,
Class[] parameters,
Class ret,
String sig,
int access)
throws Exception
- Throws:
Exception
addConstructors
public void addConstructors(Class c)
throws Exception
- Throws:
Exception
addSuperMethod
public void addSuperMethod(Method method,
int access)
throws Exception
- Throws:
Exception
addSuperMethod
public void addSuperMethod(String methodName,
String superName,
String declClass,
Class[] parameters,
Class ret,
String sig,
int access)
throws Exception
- Throws:
Exception
addProxy
public void addProxy()
throws Exception
- Throws:
Exception
addClassDictInit
public void addClassDictInit()
throws Exception
- Throws:
Exception
build
public void build()
throws Exception
- Throws:
Exception
makeProxy
public static String makeProxy(Class superclass,
OutputStream ostream)
throws Exception
- Throws:
Exception
makeFilename
public static File makeFilename(String name,
File dir)
getFile
public static OutputStream getFile(String d,
String name)
throws IOException
- Throws:
IOException