Package org.apache.bsf.util.type
Interface TypeConvertor
-
public interface TypeConvertorA TypeConvertor is used to convert an object of one type to one of another type. The convertor is invoked with the class of the from object, the desired class, and the from object itself. The convertor must return a new object of the desired class.- Author:
- Sanjiva Weerawarana
- See Also:
TypeConvertorRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectconvert(java.lang.Class from, java.lang.Class to, java.lang.Object obj)java.lang.StringgetCodeGenString()
-