org.python.compiler
Class ProxyCodeHelpers
- java.lang.Object
-
- org.python.compiler.ProxyCodeHelpers
-
- Direct Known Subclasses:
- ProxyMaker
public class ProxyCodeHelpers extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classProxyCodeHelpers.AnnotationDescrstatic classProxyCodeHelpers.ConstructorDescrstatic classProxyCodeHelpers.MethodDescr
-
Field Summary
Fields Modifier and Type Field and Description static inttBooleanstatic inttBytestatic inttCharacterstatic inttDoublestatic inttFloatstatic inttIntegerstatic inttLongstatic inttNonestatic inttOtherstatic inttShortstatic inttVoidstatic java.util.Map<java.lang.Class<?>,java.lang.Integer>types
-
Constructor Summary
Constructors Constructor and Description ProxyCodeHelpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voiddoNullReturn(Code code, java.lang.Class<?> type)static voiddoReturn(Code code, java.lang.Class<?> type)static java.util.Map<java.lang.Class<?>,java.lang.Integer>fillTypes()static PyObjectfindPython(PyProxy proxy, java.lang.String name)Retrievesnamefrom the PyObject inproxyif it's defined in Python.static intgetType(java.lang.Class<?> c)static java.lang.StringmakeSig(java.lang.Class<?> ret, java.lang.Class<?>... sig)static java.lang.StringmakeSig(java.lang.String returnType, java.lang.String... parameterTypes)static java.lang.StringmapClass(java.lang.Class<?> c)static java.lang.String[]mapClasses(java.lang.Class<?>[] classes)static java.lang.String[]mapExceptions(java.lang.Class<?>[] classes)static java.lang.StringmapType(java.lang.Class<?> type)static PyExceptionnotImplementedAbstractMethod(PyProxy proxy, java.lang.String name, java.lang.String superClass)
-
-
-
Field Detail
-
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 java.util.Map<java.lang.Class<?>,java.lang.Integer> types
-
-
Method Detail
-
fillTypes
public static java.util.Map<java.lang.Class<?>,java.lang.Integer> fillTypes()
-
getType
public static int getType(java.lang.Class<?> c)
-
findPython
public static PyObject findPython(PyProxy proxy, java.lang.String name)
Retrievesnamefrom the PyObject inproxyif it's defined in Python. This is a specialized helper function for internal PyProxy use.
-
notImplementedAbstractMethod
public static PyException notImplementedAbstractMethod(PyProxy proxy, java.lang.String name, java.lang.String superClass)
-
mapClass
public static java.lang.String mapClass(java.lang.Class<?> c)
-
mapType
public static java.lang.String mapType(java.lang.Class<?> type)
-
makeSig
public static java.lang.String makeSig(java.lang.Class<?> ret, java.lang.Class<?>... sig)
-
makeSig
public static java.lang.String makeSig(java.lang.String returnType, java.lang.String... parameterTypes)
-
doReturn
public static void doReturn(Code code, java.lang.Class<?> type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
doNullReturn
public static void doNullReturn(Code code, java.lang.Class<?> type) throws java.lang.Exception
- Throws:
java.lang.Exception
-
mapClasses
public static java.lang.String[] mapClasses(java.lang.Class<?>[] classes)
-
mapExceptions
public static java.lang.String[] mapExceptions(java.lang.Class<?>[] classes)
-
-
DMelt 3.0 © DataMelt by jWork.ORG