Package py4j.reflection
Class TypeConverter
- java.lang.Object
-
- py4j.reflection.TypeConverter
-
public class TypeConverter extends java.lang.ObjectA TypeConverter converts a Python type into a Java Type. For example, a Python String might be converted to a Java character (e.g., when calling a method that only accepts characters).
-
-
Field Summary
Fields Modifier and Type Field Description static TypeConverterBYTE_CONVERTERstatic TypeConverterCHAR_CONVERTERstatic intDOUBLE_TO_FLOATstatic TypeConverterFLOAT_CONVERTERstatic intINT_TO_BYTEstatic intINT_TO_SHORTstatic TypeConverterLONG_CONVERTERstatic intNO_CONVERSIONstatic TypeConverterNO_CONVERTERstatic intNUM_TO_LONGstatic TypeConverterSHORT_CONVERTERstatic intSTRING_TO_CHAR
-
Constructor Summary
Constructors Constructor Description TypeConverter()TypeConverter(int conversion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectconvert(java.lang.Object obj)intgetConversion()
-
-
-
Field Detail
-
NO_CONVERSION
public static final int NO_CONVERSION
- See Also:
- Constant Field Values
-
DOUBLE_TO_FLOAT
public static final int DOUBLE_TO_FLOAT
- See Also:
- Constant Field Values
-
INT_TO_SHORT
public static final int INT_TO_SHORT
- See Also:
- Constant Field Values
-
INT_TO_BYTE
public static final int INT_TO_BYTE
- See Also:
- Constant Field Values
-
STRING_TO_CHAR
public static final int STRING_TO_CHAR
- See Also:
- Constant Field Values
-
NUM_TO_LONG
public static final int NUM_TO_LONG
- See Also:
- Constant Field Values
-
NO_CONVERTER
public static final TypeConverter NO_CONVERTER
-
FLOAT_CONVERTER
public static final TypeConverter FLOAT_CONVERTER
-
SHORT_CONVERTER
public static final TypeConverter SHORT_CONVERTER
-
BYTE_CONVERTER
public static final TypeConverter BYTE_CONVERTER
-
CHAR_CONVERTER
public static final TypeConverter CHAR_CONVERTER
-
LONG_CONVERTER
public static final TypeConverter LONG_CONVERTER
-
-